[osg-users] osgText::readFontFile returns NULL on valid argument

Paul Melis paul at science.uva.nl
Wed Mar 18 05:05:50 PDT 2009

Jesper D. Thomsen wrote:
> Hi all, I have a rather strange problem.
> I'm using osgText in my project, but I'm getting null as return from 
> this method:
> osgText::Font* t_font = osgText::readFontFile("fonts/arial.ttf");
If you set the environment variable OSG_NOTIFY_LEVEL to DEBUG (tip: run 
in a dos box) you should be able to see in which locations the font file 
is being searched


More information about the osg-users mailing list