summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-01-04 16:37:53 +0000
committerpeter1138 <peter1138@openttd.org>2010-01-04 16:37:53 +0000
commit51f5102713152a10399652e0b3f18bbb0caa3aa7 (patch)
tree1fb0d250e9c03391108f619bb45f207f00504649 /src
parent051e54c9a782e22ca381129ee8d24fdeb7481b62 (diff)
downloadopenttd-51f5102713152a10399652e0b3f18bbb0caa3aa7.tar.xz
(svn r18712) -Fix (r5167): Spurious character spacing with free type fonts for small and large font sizes.
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 5f3d8f75a..9802c9a54 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -1004,7 +1004,7 @@ const Sprite *GetGlyph(FontSize size, WChar key)
}
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);