From c0db1957c82ac9e87bde609bd4d94d1dcf5587a3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 8 Sep 2023 00:15:06 +0200 Subject: [PATCH] GUI: Pick up theme font size in RIchTextWidget --- gui/widgets/richtext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/widgets/richtext.cpp b/gui/widgets/richtext.cpp index a0cf88a93b1..7f4c4bbdfc0 100644 --- a/gui/widgets/richtext.cpp +++ b/gui/widgets/richtext.cpp @@ -142,7 +142,9 @@ void RichTextWidget::createWidget() { TextColorData *normal = g_gui.theme()->getTextColorData(kTextColorNormal); uint32 fg = _wm->_pixelformat.RGBToColor(normal->r, normal->g, normal->b); - Graphics::MacFont macFont(Graphics::kMacFontNewYork, 30, Graphics::kMacFontRegular); + const int fontHeight = g_gui.xmlEval()->getVar("Globals.Font.Height", 25); + + Graphics::MacFont macFont(Graphics::kMacFontNewYork, fontHeight, Graphics::kMacFontRegular); _txtWnd = new Graphics::MacText(Common::U32String(), _wm, &macFont, fg, bg, _textWidth, Graphics::kTextAlignLeft);