Skip to content
Permalink
Browse files

GUI: Don't try loading TTF fonts for themes that don't request one

  • Loading branch information...
bgK committed Jan 22, 2019
1 parent 364a2aa commit c59dd85ebc42b2133ff98bc9411313a1466f1334
Showing with 3 additions and 1 deletion.
  1. +3 −1 gui/ThemeEngine.cpp
@@ -1541,7 +1541,9 @@ const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename, cons
const Graphics::Font *font = 0;

// Prefer scalable fonts over non-scalable fonts
font = loadScalableFont(scalableFilename, charset, pointsize, fontName);
if (!scalableFilename.empty())
font = loadScalableFont(scalableFilename, charset, pointsize, fontName);

if (!font)
font = loadFont(filename, fontName);

0 comments on commit c59dd85

Please sign in to comment.
You can’t perform that action at this time.