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

xyc508 at 163.com xyc508 at 163.com
Thu Apr 17 17:51:44 PDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080418/05eafc30/attachment.htm 


More information about the osg-users mailing list