From 4d8a0f22f2001447f4790bfcd2041eccda0b723a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 18 Oct 2019 09:27:33 +0200 Subject: GRAPHICS: MACGUI: Fix compilation without freetype --- graphics/macgui/macfontmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp index 4faafa4054..259fd157eb 100644 --- a/graphics/macgui/macfontmanager.cpp +++ b/graphics/macgui/macfontmanager.cpp @@ -284,11 +284,13 @@ const Font *MacFontManager::getFont(MacFont macFont) { } } - if (_builtInFonts || !font) { +#ifdef USE_FREETYPE2 + if (!font) { if (_mode & kWMModeUnicode) { font = Graphics::loadTTFFontFromArchive("FreeSans.ttf", 16, Graphics::kTTFSizeModeCell, 0, Graphics::kTTFRenderModeMonochrome); } } +#endif if (!font) font = FontMan.getFontByUsage(macFont.getFallback()); -- cgit v1.2.3