[osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread sicong he
Hi, all,
I'm now using osgViewer::StatsHandler to measure my scene, the program runs
OK under windows system.
But under my Ubuntu 8.04 the the console output the following message:

*Warning: font file fonts/arial.ttf not found.

*And the stats font is very very small. I just think it load another default
font.

I have look in to the source code and found this font name is hard coded. Is
there a way to fix this problem? Thanks!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread Robert Osfield
Hi HeSiciong,

On Tue, Oct 14, 2008 at 12:51 PM, sicong he [EMAIL PROTECTED] wrote:
 Hi, all,
 I'm now using osgViewer::StatsHandler to measure my scene, the program runs
 OK under windows system.
 But under my Ubuntu 8.04 the the console output the following message:

 Warning: font file fonts/arial.ttf not found.

 And the stats font is very very small. I just think it load another default
 font.

 I have look in to the source code and found this font name is hard coded. Is
 there a way to fix this problem? Thanks!

Well you need to have a fonts/arial.tiff file and it's in
OpenSceneGraph-Data/fonts so you need to grab this and point your
OSG_FILE_PATH to it.

Robert/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread sicong he
Thank you Robert, it works now!

2008/10/14 Robert Osfield [EMAIL PROTECTED]

 Hi HeSiciong,

 On Tue, Oct 14, 2008 at 12:51 PM, sicong he [EMAIL PROTECTED]
 wrote:
  Hi, all,
  I'm now using osgViewer::StatsHandler to measure my scene, the program
 runs
  OK under windows system.
  But under my Ubuntu 8.04 the the console output the following message:
 
  Warning: font file fonts/arial.ttf not found.
 
  And the stats font is very very small. I just think it load another
 default
  font.
 
  I have look in to the source code and found this font name is hard coded.
 Is
  there a way to fix this problem? Thanks!

 Well you need to have a fonts/arial.tiff file and it's in
 OpenSceneGraph-Data/fonts so you need to grab this and point your
 OSG_FILE_PATH to it.

 Robert/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org