forked from mirrors/0ad
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user