From d549ed2d6c146c2c114a48ef184a5157517fb621 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 14 Oct 2014 14:16:38 +0000 Subject: [PATCH] (svn r27015) -Codechange: Also scale the character spacing for fonts without shadow. --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontcache.cpp b/src/fontcache.cpp index c8aca98529..8aae4d7839 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -183,7 +183,7 @@ uint SpriteFontCache::GetGlyphWidth(GlyphID key) { SpriteID sprite = this->GetUnicodeGlyph(key); if (sprite == 0) sprite = this->GetUnicodeGlyph('?'); - return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + (this->fs != FS_NORMAL) : 0; + return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + UnScaleByZoom(4 * (this->fs != FS_NORMAL), ZOOM_LVL_GUI) : 0; } int SpriteFontCache::GetHeight() const