From b5c4a4635c54c89806c13d73b3b7b0cb3e895a3b Mon Sep 17 00:00:00 2001 From: Vantha Date: Mon, 12 Jan 2026 00:03:33 +0100 Subject: [PATCH] Revert temporary workarounds for font baseline issues Those workarounds were added in order to hide issues with the font rendering in the short term for R28 and will hopefully be properly fixed for R29. --- binaries/data/mods/public/gui/reference/viewer/viewer.js | 3 +-- source/gui/SettingTypes/CGUIString.cpp | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/binaries/data/mods/public/gui/reference/viewer/viewer.js b/binaries/data/mods/public/gui/reference/viewer/viewer.js index ec22db646b..76eb4ad161 100644 --- a/binaries/data/mods/public/gui/reference/viewer/viewer.js +++ b/binaries/data/mods/public/gui/reference/viewer/viewer.js @@ -1,8 +1,7 @@ /** * Override style so we can get a bigger primary name. */ -// Temporarily overwritten in order to hide a baseline issue in the font engine. -g_TooltipTextFormats.namePrimaryBig.font = /* "sans-bold-20" */ "sans-bold-16"; +g_TooltipTextFormats.namePrimaryBig.font = "sans-bold-20"; g_TooltipTextFormats.namePrimarySmall.font = "sans-bold-16"; g_TooltipTextFormats.nameSecondary.font = "sans-bold-16"; diff --git a/source/gui/SettingTypes/CGUIString.cpp b/source/gui/SettingTypes/CGUIString.cpp index 65f1e74da6..8ffe5f8385 100644 --- a/source/gui/SettingTypes/CGUIString.cpp +++ b/source/gui/SettingTypes/CGUIString.cpp @@ -149,9 +149,6 @@ void CGUIString::GenerateTextCall(const CGUI& pGUI, SFeedback& Feedback, CStrInt TextCall.m_Size = size; SpriteCall.m_Area = size; - // Temporary workaround for a fundamental misalignment issue. - SpriteCall.m_Area += CSize2D{0.f, -3.f}; - // Handle additional attributes for (const TextChunk::Tag::TagAttribute& tagAttrib : tag.m_TagAttributes) {