GRAPHICS: MACGUI: FreeType required for Win95 fonts

Fixes compilation on platforms without FreeType
This commit is contained in:
SupSuper 2021-05-01 07:44:05 +01:00
parent 29e07a483e
commit 41798fca5d

View File

@ -585,6 +585,7 @@ void MacMenu::createSubMenuFromString(int id, const char *str, int commandId) {
}
const Font *MacMenu::getMenuFont(int slant) {
#ifdef USE_FREETYPE2
if (_wm->_mode & kWMModeWin95) {
if (!_loadedFont) {
_loadedFont = Graphics::loadTTFFontFromArchive("ms_sans_serif.ttf", 16);
@ -597,6 +598,7 @@ const Font *MacMenu::getMenuFont(int slant) {
// If font was not loaded, fallback
}
#endif
return _wm->_fontMan->getFont(Graphics::MacFont(kMacFontChicago, 12, slant));
}