[osg-users] About setFont() & readImageFile() on Internet
Robert Osfield
robert.osfield at gmail.com
Tue Apr 22 01:33:09 PDT 2008
Hi Donlin,
I don't think the fonts are downloadable via http. Right now you
might have to download them explicitly then reference them.
Robert.
2008/4/22 <xyc508 at 163.com>:
>
>
> Hello,Robert,
>
> Very Thanks for your reply.
>
> I do the following and it takes affects:
> //
> osgDB::FilePathList FilePath;
>
> osgDB::convertStringPathIntoFilePathList("C:/WINDOWS/system32",FilePath);
>
> osgDB::appendPlatformSpecificResourceFilePaths(FilePath);
> osgDB::setDataFilePathList(FilePath);
> //
>
> But there appear other issue:
>
> How to set
> osgDB::convertStringPathIntoFilePathList(),(osgDB::setDataFilePathList()),
> osgText::setFont() and osgDB::readImageFile() accept URLs?
> I need read data from http.
>
> for example:
> //
>
> osgDB::convertStringPathIntoFilePathList("http://www.aaa.com/Data",FilePath);
> osgDB::appendPlatformSpecificResourceFilePaths(FilePath);
> osgDB::setDataFilePathList(FilePath);
>
> osgText::setFont("http://www.aaa.com/Data/fonts1.ttf");
>
> osgDB::readImageFile("http://www.aaa.com/Data/bbb.tga")
> //
>
> Could you give help? Thank you.
>
> Donlin
>
>
> ________________________________
> 买房不必东奔西走,上房老大看二手房实景照片
More information about the osg-users
mailing list