(svn r18712) -Fix (r5167): Spurious character spacing with free type fonts for small and large font sizes.

This commit is contained in:
peter1138
2010-01-04 16:37:53 +00:00
parent 0ae57c0997
commit 550b68c96e

View File

@@ -1004,7 +1004,7 @@ const Sprite *GetGlyph(FontSize size, WChar key)
} }
new_glyph.sprite = BlitterFactoryBase::GetCurrentBlitter()->Encode(&sprite, AllocateFont); new_glyph.sprite = BlitterFactoryBase::GetCurrentBlitter()->Encode(&sprite, AllocateFont);
new_glyph.width = (slot->advance.x >> 6) + (size != FS_NORMAL); new_glyph.width = slot->advance.x >> 6;
SetGlyphPtr(size, key, &new_glyph); SetGlyphPtr(size, key, &new_glyph);