Hello,
I am trying to load a ttf font file (under win xp) using the following:
osgText::Font* font = osgText::readFontFile("verdana.ttf");
but all I get is a NULL pointer. This file is present in the windows
fonts directory and also in the executable directory.
I also get no result using the function:
text->setFont(font); // 'text' is a osgText::Text
Are TTF files not supported by OSG? or should I enable something
somewhere? From the stdout I don't get any message regarding any font
related error.
As a side note I would like to add that I compiled the plugin
"mingw_osgdb_freetype.dll" using Freetype 2.3.5.
Thanks,
Michele
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org