GUI: Scale fonts for classic theme

This commit is contained in:
Eugene Sandulenko 2023-06-23 12:04:07 +02:00
parent ae89982ded
commit 96b0274fcc
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1777,9 +1777,12 @@ const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename, cons
#ifdef USE_TRANSLATION
allowNonScalable = TransMan.currentIsBuiltinLanguage();
#endif
if (!font && allowNonScalable)
if (!font && allowNonScalable) {
font = loadFont(filename, fontName);
//font = Graphics::BdfFont::scaleFont((const Graphics::BdfFont *)font, pointsize);
}
// If the font is successfully loaded store it in the font manager.
if (font) {
FontMan.assignFontToName(fontName, font);