The wrong file name was being used readFontFile.

This commit is contained in:
Robert Osfield
2003-03-14 09:28:34 +00:00
parent 3786683636
commit 34fc7dd289

View File

@@ -63,7 +63,7 @@ osgText::Font* osgText::readFontFile(const std::string& filename)
std::string foundFile = findFontFile(filename);
if (foundFile.empty()) return 0;
osg::Object* object = osgDB::readObjectFile(filename);
osg::Object* object = osgDB::readObjectFile(foundFile);
// if the object is a font then return it.
osgText::Font* font = dynamic_cast<osgText::Font*>(object);