Removed the font cache from the FreeType plugin, moving the support across to

osgDB::Registry.
This commit is contained in:
Robert Osfield
2004-11-02 11:10:44 +00:00
parent 5d49c88240
commit 2718058173
4 changed files with 71 additions and 3 deletions

View File

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