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,6 +75,10 @@ std::string osgText::findFontFile(const std::string& str)
winFontPath += "\\fonts";
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
osgDB::convertStringPathIntoFilePathList(
".:/usr/share/fonts/ttf:/usr/share/fonts/ttf/western:/usr/share/fonts/ttf/decoratives",