From Hartwig Wiesmann, fix to font search path under OSX.
This commit is contained in:
parent
553d860d48
commit
1d7222f59f
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user