(svn r18712) -Fix (r5167): Spurious character spacing with free type fonts for small and large font sizes.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user