mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GRAPHICS: MACGUI: Improved fallback processing for mac font families
This commit is contained in:
parent
3b6d582988
commit
c47c9eaad4
@ -346,10 +346,13 @@ const Common::String MacFontManager::getFontName(int id, int size, int slant, bo
|
||||
if (_extraFontNames.contains(id)) {
|
||||
n = _extraFontNames[id];
|
||||
} else if (id < ARRAYSIZE(fontNames)) {
|
||||
n = fontNames[id];
|
||||
} else {
|
||||
warning("MacFontManager: Requested font ID %d not found. Falling back to Chicago", id);
|
||||
n = fontNames[0]; // Fallback to Chicago
|
||||
if (fontNames[id])
|
||||
n = fontNames[id];
|
||||
}
|
||||
|
||||
if (n.empty()) {
|
||||
warning("MacFontManager: Requested font ID %d not found. Falling back to Geneva", id);
|
||||
n = fontNames[1]; // Fallback to Geneva
|
||||
}
|
||||
|
||||
if (tryGen && slant != kMacFontRegular) {
|
||||
|
Loading…
Reference in New Issue
Block a user