diff options
-rw-r--r-- | engines/mohawk/riven_stacks/aspit.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/mohawk/riven_stacks/aspit.cpp b/engines/mohawk/riven_stacks/aspit.cpp index 59cc3b9912..6f22786777 100644 --- a/engines/mohawk/riven_stacks/aspit.cpp +++ b/engines/mohawk/riven_stacks/aspit.cpp @@ -98,17 +98,21 @@ void ASpit::xastartupbtnhide(const ArgumentArray &args) { const char *fontname; const Graphics::Font *font = nullptr; - int fontHeight; if (_vm->getLanguage() != Common::JA_JPN) { fontname = "FreeSans.ttf"; - fontHeight = 12; } else { fontname = "mplus-2c-regular.ttf"; - fontHeight = 11; } - #if defined(USE_FREETYPE2) + int fontHeight; + + if (_vm->getLanguage() != Common::JA_JPN) { + fontHeight = 12; + } else { + fontHeight = 11; + } + if (file.open(fontname)) { font = Graphics::loadTTFFont(file, fontHeight); } |