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.
This commit is contained in:
Vantha 2026-01-12 00:03:33 +01:00 committed by Phosit
parent 2483e7172b
commit b5c4a4635c
2 changed files with 1 additions and 5 deletions

View file

@ -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";

View file

@ -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)
{