From Hartwig Wiesmann, fix to font search path under OSX.

This commit is contained in:
Robert Osfield 2010-11-22 10:41:04 +00:00
parent 553d860d48
commit 1d7222f59f

View File

@ -75,10 +75,14 @@ std::string osgText::findFontFile(const std::string& str)
winFontPath += "\\fonts"; winFontPath += "\\fonts";
s_FontFilePath.push_back(winFontPath); s_FontFilePath.push_back(winFontPath);
} }
#elif defined(__APPLE__)
osgDB::convertStringPathIntoFilePathList(
".:/usr/share/fonts/ttf:/usr/share/fonts/ttf/western:/usr/share/fonts/ttf/decoratives:/Library/Fonts:/System/Library/Fonts",
s_FontFilePath);
#else #else
osgDB::convertStringPathIntoFilePathList( osgDB::convertStringPathIntoFilePathList(
".:/usr/share/fonts/ttf:/usr/share/fonts/ttf/western:/usr/share/fonts/ttf/decoratives", ".:/usr/share/fonts/ttf:/usr/share/fonts/ttf/western:/usr/share/fonts/ttf/decoratives",
s_FontFilePath); s_FontFilePath);
#endif #endif
} }