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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 10 years ago
parent deca49f4c6
commit 2eb38ef9e9

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

Loading…
Cancel
Save