Re: [osg-users] How to set Fonts file Path?

2008-04-18 Thread Robert Osfield
Hi Donlin,

A good way to debug file search paths is to enable verbose debug messages via:

  set OSG_NOTIFY_LEVEL=DEBUG

And then look for the output where it searches for the Font.  It could
be that the search paths on each machine is different, or that each
machine doesn't have the same set of data installed on the same paths.

To set paths you can simply do:

 set OSG_FILE_PATH=.

Or programatically:

  osgDB::setDataFilePath(...);

Robert.



On Fri, Apr 18, 2008 at 1:51 AM,  [EMAIL PROTECTED] wrote:


 Hello,all,

 I use setFont(Fonts//ARIAL.TTF) ,it can take affects on development
 machine,but after change other machine it can't show the right Fonts,why?
 (The file ARIAL.TTF is on the both machine C:\WINDOWS\Fonts\ARIAL.TTF)

 I got a little confuse:

 -

 setFont(Fonts/ARIAL.TTF);

 setFont(Fonts//ARIAL.TTF);

 setFont(Fonts\\ARIAL.TTF);

 setFont(C:\WINDOWS\Fonts\ARIAL.TTF);

 setFont(C:\\WINDOWS\\Fonts\\ARIAL.TTF);

 setFont(C://WINDOWS//Fonts//ARIAL.TTF);

 --

 Which is correct and should be?

 Thank you.



 Donlin

  
  飙舞赚QQ秀赢旅行券
 ___
  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


[osg-users] How to set Fonts file Path?

2008-04-17 Thread xyc508
Hello,all,

I use setFont(Fonts//ARIAL.TTF) ,it can take affects on development 
machine,but after change other machine it can't show the right Fonts,why? (The 
file ARIAL.TTF is on the both machine C:\WINDOWS\Fonts\ARIAL.TTF)

I got a little confuse:

-

setFont(Fonts/ARIAL.TTF); 

setFont(Fonts//ARIAL.TTF); 

setFont(Fonts\\ARIAL.TTF); 

setFont(C:\WINDOWS\Fonts\ARIAL.TTF); 

setFont(C:\\WINDOWS\\Fonts\\ARIAL.TTF); 

setFont(C://WINDOWS//Fonts//ARIAL.TTF); 

--

Which is correct and should be?

Thank you.

 

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