From 64049f0f81c22b321a790636fca502e9d267623c Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 7 Dec 2020 22:56:22 +0200 Subject: Fix font bug --- src/render/Font.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render') diff --git a/src/render/Font.cpp b/src/render/Font.cpp index 5a6ff94f..9b022394 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -390,9 +390,9 @@ CFont::PrintChar(float x, float y, wchar c) x + 32.0f * RenderState.scaleX * 1.0f, y + 33.0f * RenderState.scaleY * 0.5f), RenderState.color, - xoff / 16.0f, yoff / 12.8f, - (xoff + 1.0f) / 16.0f - 0.001f, yoff / 12.8f - 0.017f, - xoff / 16.0f, (yoff + 1.0f) / 12.8f, + xoff / 16.0f, yoff / 12.8f + 0.0021f, + (xoff + 1.0f) / 16.0f - 0.001f, yoff / 12.8f + 0.0021f, + xoff / 16.0f, (yoff + 1.0f) / 12.8f - 0.017f, (xoff + 1.0f) / 16.0f - 0.001f, (yoff + 1.0f) / 12.8f - 0.017f); } } else -- cgit v1.2.3 From 8844caf44deda3dd53c4c253d54c79cb2879a633 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 8 Dec 2020 02:22:02 +0200 Subject: Fix vanilla font bug --- src/render/Font.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render') diff --git a/src/render/Font.cpp b/src/render/Font.cpp index 9b022394..a3132627 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -374,7 +374,11 @@ CFont::PrintChar(float x, float y, wchar c) if(Details.style == FONT_BANK || Details.style == FONT_STANDARD){ if (bDontPrint) return; if (RenderState.slant == 0.0f) { +#ifdef FIX_BUGS + if (c < 192) { +#else if (c < 193) { +#endif CSprite2d::AddToBuffer( CRect(x, y, x + 32.0f * RenderState.scaleX * 1.0f, -- cgit v1.2.3