[Scummvm-git-logs] scummvm master -> 139a20a4da1761e97be584e8799dbbc26aff7cbb
sev-
noreply at scummvm.org
Tue Mar 24 19:50:09 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
139a20a4da GUI: Implement reliable way of detecting GUI language in Help Dialog
Commit: 139a20a4da1761e97be584e8799dbbc26aff7cbb
https://github.com/scummvm/scummvm/commit/139a20a4da1761e97be584e8799dbbc26aff7cbb
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-03-24T20:46:12+01:00
Commit Message:
GUI: Implement reliable way of detecting GUI language in Help Dialog
Changed paths:
gui/widgets/richtext.cpp
diff --git a/gui/widgets/richtext.cpp b/gui/widgets/richtext.cpp
index 60da5bffd3a..726670da7f6 100644
--- a/gui/widgets/richtext.cpp
+++ b/gui/widgets/richtext.cpp
@@ -21,6 +21,7 @@
#include "common/system.h"
#include "common/unicode-bidi.h"
+#include "common/translation.h"
#include "graphics/macgui/mactext.h"
#include "graphics/macgui/macfontmanager.h"
@@ -228,8 +229,15 @@ void RichTextWidget::createWidget() {
const int fontHeight = g_gui.xmlEval()->getVar("Globals.Font.Height", 25);
int newId;
- if (ConfMan.hasKey("gui_language") && !ConfMan.get("gui_language").empty())
- // MacFONTs do not contain diacritic marks or non-English characters, so we have to use TTF instead
+ bool useTTF = false; // For English we use MacFONTs
+
+#ifdef USE_TRANSLATION
+ // MacFONTs do not contain diacritic marks or non-English characters, so we have to use TTF instead
+ if (TransMan.getCurrentLanguage() != "en")
+ useTTF = true;
+#endif
+
+ if (useTTF)
newId = wm->_fontMan->registerTTFFont(ttfFamily);
else
newId = Graphics::kMacFontNewYork;
More information about the Scummvm-git-logs
mailing list