You can set the font.

osg::ref_ptr<osgText::Font> font = osgText::readFontFile('yourfont.ttf');

osg::ref_ptr<osgText::Text> txt = new osgText::Text;
txt->setFont(font.get());

-K

On Tue, 13 Dec 2011, Thomas Lerman wrote:

I see arial.ttf referred 13 times, most of which are hardcoded in the fonts 
directory. Most of my development has been on Windows and that font is 
standard. Recently, I did some stuff on Linux where Arial is not a default font 
and therefore text looked pretty ugly. It was somewhat of a pain to get the 
font installed and ended up just copying arial.ttf in with my application. It 
sure would be nice to be able to set some configuration to be able to change 
which font is used.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44367#44367





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to