info-inventor
[Top] [All Lists]

Fonts for SoText2 (SoFont,SoFontStyle)

To: info-inventor <info-inventor@xxxxxxxxxxx>, info-inventor-dev <info-inventor-dev@xxxxxxxxxxx>
Subject: Fonts for SoText2 (SoFont,SoFontStyle)
From: Christoph Hintermüller <hinzge@xxxxxxxxxxxxxx>
Date: Tue, 02 Oct 2001 22:44:48 +0200
Newsgroups: comp.graphics.api.inventor
Sender: owner-inventor@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.2) Gecko/20010628
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


--
THESIS:     God is alive
PROOVE:     Who else would have scheduled the mankind and world first
             recommendation of research????
CONCLUSION: Scientists do what he wants, willing or not:)



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