Mac OS X update - Standard Mac font paths will now be used during attempt to TTF fonts at startup. (eg. Foreign fonts can now be placed in /Library/Fonts or ~/Library/Fonts, alongside all the other standard Mac fonts)

This commit is contained in:
Martin Fuhrer 2006-10-19 01:34:32 +00:00
parent 3e171a164f
commit 83b00e8f60

View file

@ -128,6 +128,26 @@ TTF_Font *load_locale_font(TTF_Font * fallback, int size)
DATA_PREFIX, lang_prefix);
ret = TTF_OpenFont(str, size);
#ifdef __APPLE__
if (ret == NULL)
{
snprintf(str, sizeof(str), "%sfonts/%s.ttf", DATA_PREFIX, lang_prefix);
ret = TTF_OpenFont(str, size);
}
if (ret == NULL)
{
snprintf(str, sizeof(str), "/Library/Fonts/%s.ttf", lang_prefix);
ret = TTF_OpenFont(str, size);
}
if (ret == NULL)
{
snprintf(str, sizeof(str), "%s/%s.ttf", macosx.fontsPath, lang_prefix);
ret = TTF_OpenFont(str, size);
}
#endif
if (ret == NULL)
{