[osg-users] Font silently not loaded
Michele Bosi
michele.bosi at gmail.com
Mon Jan 7 05:57:56 PST 2008
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
More information about the osg-users
mailing list