From 8f7df6230ea9cb6b985ffe22c2fe354704251f01 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 24 Nov 2019 18:39:37 +0100 Subject: MACGUI: Recognise the fact that Geneva font lives with 2 IDs --- graphics/macgui/macfontmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphics/macgui/macfontmanager.cpp') 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)) { -- cgit v1.2.3