From 2eb38ef9e950687c59d44d9805f1254f9f9bd04a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 14 Oct 2014 14:16:38 +0000 Subject: (svn r27015) -Codechange: Also scale the character spacing for fonts without shadow. --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fontcache.cpp') diff --git a/src/fontcache.cpp b/src/fontcache.cpp index c8aca9852..8aae4d783 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 -- cgit v1.2.3-70-g09d2