Skip to content

Commit

Permalink
GUI: Don't try loading TTF fonts for themes that don't request one
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Jan 22, 2019
1 parent 364a2aa commit c59dd85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/ThemeEngine.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit c59dd85

Please sign in to comment.