diff --git a/include/osgText/Font b/include/osgText/Font index 485410e90..d2a2bffaa 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -57,7 +57,7 @@ enum KerningType * the file will be searched again in the OS specific directories. */ extern OSGTEXT_EXPORT Font* readFontFile(const std::string& filename); - +extern OSGTEXT_EXPORT std::string findFontFile(const std::string& str); /** Pure virtual base class for fonts. * Concrete implementation are the DefaultFont found in src/osgText/DefaultFont.cpp diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 873cdbed9..ea64814ad 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -27,7 +27,7 @@ using namespace osgText; using namespace std; -std::string findFontFile(const std::string& str) +std::string osgText::findFontFile(const std::string& str) { // try looking in OSGFILEPATH etc first for fonts. std::string filename = osgDB::findDataFile(str);