diff options
author | Eugene Sandulenko | 2019-11-24 18:39:37 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-24 18:42:45 +0100 |
commit | 8f7df6230ea9cb6b985ffe22c2fe354704251f01 (patch) | |
tree | 95c835f88b8f3ceb099f816f1ecd5b50cecd69b9 /graphics/macgui | |
parent | 663b8d61fb9867ede25752f9436d51ff03be52f8 (diff) | |
download | scummvm-rg350-8f7df6230ea9cb6b985ffe22c2fe354704251f01.tar.gz scummvm-rg350-8f7df6230ea9cb6b985ffe22c2fe354704251f01.tar.bz2 scummvm-rg350-8f7df6230ea9cb6b985ffe22c2fe354704251f01.zip |
MACGUI: Recognise the fact that Geneva font lives with 2 IDs
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macfontmanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp index 92cb63be2b..8c35220e31 100644 --- a/graphics/macgui/macfontmanager.cpp +++ b/graphics/macgui/macfontmanager.cpp @@ -340,6 +340,9 @@ void MacFontManager::clearFontMapping() { const Common::String MacFontManager::getFontName(int id, int size, int slant, bool tryGen) { Common::String n; + if (id == 3) // This is Geneva + id = 1; + if (_extraFontNames.contains(id)) { n = _extraFontNames[id]; } else if (id < ARRAYSIZE(fontNames)) { |