[Scummvm-git-logs] scummvm master -> 308e2fd3408e5b6a08a07e5afd4978e1410a5cb3
sev-
noreply at scummvm.org
Wed Jul 19 13:17:47 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
308e2fd340 GUI: Added possibility to disable BDF font scaling
Commit: 308e2fd3408e5b6a08a07e5afd4978e1410a5cb3
https://github.com/scummvm/scummvm/commit/308e2fd3408e5b6a08a07e5afd4978e1410a5cb3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-07-19T15:17:28+02:00
Commit Message:
GUI: Added possibility to disable BDF font scaling
Specify "gui_disable_fixed_font_scaling". The checkbox in the GUI will follow
Changed paths:
gui/ThemeEngine.cpp
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index c1db060b543..f973aed4579 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -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.
More information about the Scummvm-git-logs
mailing list