Added warning report for when a font file cannot be found.

This commit is contained in:
Robert Osfield 2001-11-19 10:40:42 +00:00
parent 969f757679
commit 82c315dadd

View File

@ -15,6 +15,7 @@
#include <osgText/Font>
#include <osg/Notify>
#include <osgDB/FileUtils>
#include "FTFace.h"
@ -50,7 +51,7 @@ std::string findFontFile(const std::string& str)
filename = osgDB::findFileInPath(str.c_str(),s_FontFilePath);
if (filename) return std::string(filename);
}
osg::notify(osg::WARN)<<"Unable to find font file '"<<str<<"'"<<endl;
return std::string();
}