1
0
Fork 0

(svn r27015) -Codechange: Also scale the character spacing for fonts without shadow.

release/1.5
peter1138 2014-10-14 14:16:38 +00:00
parent deca49f4c6
commit 2eb38ef9e9
1 changed files with 1 additions and 1 deletions

View File

@ -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