Hi Michele,
TrueType fonts are supported by FreeType and hence the OSG, there are
even true type fonts in the OpenSceneGraph/fonts directory. I can't
say why this particular font of yours is failing. Set the
OSG_NOTIFY_LEVEL env var to DEBUG and have a look at the console
output to see whether the font is being found and loaded.
Robert.
On Jan 7, 2008 1:57 PM, Michele Bosi <[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org