[osg-users] About setFont() & readImageFile() on Internet
xyc508 at 163.com
xyc508 at 163.com
Mon Apr 14 03:59:13 PDT 2008
Hello,all,
could any know that why it doesn't take effects while I use setFont("http://www.aaa.com/aaa.ttf")and osgDB::readImageFile("http://www.aaa.com/bbb.tga")?
and on Internet, if I use Text1->setFont("Fonts/simhei.ttf"); it also doesn't take effects,but "Fonts/simhei.ttf" is actually on System Fonts position,why?
The code is following:
------------------------------------------------------------
.....
osgText::Text()* Text1 = new osgText::Text()
Text1->setFont("http://www.aaa.com/aaa.ttf");
.....
osg::Image* Image1 = new osg::Image;
Image1->osgDB::readImageFile("http://www.aaa.com/bbb.tga");
.....
------------------------------------------------------------
The aaa.ttf and bbb.tga is on the right Web Server.
Thank you.
Donlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080414/790763fe/attachment.htm
More information about the osg-users
mailing list