info-inventor-dev
[Top] [All Lists]

Re: Fonts for SoText2 (SoFont,SoFontStyle)

To: info-inventor <info-inventor@xxxxxxxxxxx>, info-inventor-dev <info-inventor-dev@xxxxxxxxxxx>
Subject: Re: Fonts for SoText2 (SoFont,SoFontStyle)
From: Christoph Hintermueller <hinzge@xxxxxxxxxxxxxx>
Date: Tue, 16 Oct 2001 17:40:56 +0200
Newsgroups: comp.graphics.api.inventor
References: <3BBA2740.1@sbox.tugraz.at>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316
AGGRRR
The only way (TGS) Inventor recognizes the fonts via name is
1) fontname and filename are identical or atleast there must be a symbolic link named like the font
means
eg: font `Courier-Bold' -> filename `Courier-Bold'
2) all the fonts/links to fonts must be collected in one directory even if all directories containing proper fonts and filenames are listed in
the environment Variable `OIV_PSFONT_PATH' (AGGRRR)


conclusion neither there is a possibility to thest wether font can displayed or not nor is there any support for XFS :(

cu
Christoph




Christoph Hintermüller wrote:

Hi
I do have the following problem
For exporting the content of the shown scene as and Image for inclusion into a paper
I have coded a SoText2 and SoFont(Style) based module via which one can label
parts of the scene but i do have the following problems with the Fonts themselves
1) if i let the psfontpath (UNIX) beeing the default one I do only have 2 fonts
a normal and a Bold one
2) if i do extend the psfont path to all fontpathes known on the system so it
might be possible that the font selected by the user via a font dialog can be
found, the font is found but can't be displayed


-> what do I have to set in the SoFontStyle node to get the font displayed
(basically)
-> how can i check wether a font is displayable by Inventor or not
-> how to compile a fontname (style) so that inventor picks the correct font



when talking above about fontname/style I mean: Arial Times (new) Roman ...

and these are meant as they are
further i do need a solution which also holds for windows (eg using #ifdefs)


cu
Christoph



<Prev in Thread] Current Thread [Next in Thread>