Hi Yanling,

After all
"fonts/arial.ttf" may only be valid on windows.

Why do you say that? OSG comes with a freetype plugin that loads .ttf fonts on any platform, including Linux. In the OpenSceneGraph-Data distribution we even include a few such font files.

http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/trunk/fonts/

That being said, if you don't want to see the messages you can either
a) turn the OSG notification level down (osg::setNotifyLevel)
b) make sure it can find arial.ttf
c) make a ReadFileCallback that returns some internal font for all font load requests d) modify the concerned classes so they have an option whether to try to load fonts or not

Those are just examples, there are other options or variations on them, but only you can decide what you want to do in your case...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to