mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
2483e7172b
commit
b5c4a4635c
2 changed files with 1 additions and 5 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue