GUI: Added possibility to disable BDF font scaling

Specify "gui_disable_fixed_font_scaling". The checkbox in the GUI will follow
This commit is contained in:
Eugene Sandulenko 2023-07-19 15:16:50 +02:00
parent 7b6b6a5541
commit 308e2fd340
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1780,7 +1780,8 @@ const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename, cons
if (!font && allowNonScalable) {
font = loadFont(filename, fontName);
font = Graphics::BdfFont::scaleFont((const Graphics::BdfFont *)font, pointsize);
if (!ConfMan.getBool("gui_disable_fixed_font_scaling"))
font = Graphics::BdfFont::scaleFont((const Graphics::BdfFont *)font, pointsize);
}
// If the font is successfully loaded store it in the font manager.