diff options
author | rubidium <rubidium@openttd.org> | 2009-03-25 20:01:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-25 20:01:34 +0000 |
commit | e8d76e79ee8b58d9947c05eb9dcb53c3d0b4ec19 (patch) | |
tree | 18c01826c7b985207e18da3859c51953c551a3a8 /src/fontcache.h | |
parent | 28d3123dfd7c8a981496e81fb1dc5996015563d9 (diff) | |
download | openttd-e8d76e79ee8b58d9947c05eb9dcb53c3d0b4ec19.tar.xz |
(svn r15849) -Codechange: provide easy access to the real height of the used fonts
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index e72fc8225..3ff4b256f 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -16,6 +16,8 @@ void SetUnicodeGlyph(FontSize size, uint32 key, SpriteID sprite); /** Initialize the glyph map */ void InitializeUnicodeGlyphMap(); +void ResetFontSizes(); + #ifdef WITH_FREETYPE struct FreeTypeSettings { @@ -51,8 +53,8 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i #else /* Stub for initializiation */ -static inline void InitFreeType() {} -static inline void UninitFreeType() {} +static inline void InitFreeType() { ResetFontSizes(); } +static inline void UninitFreeType() { ResetFontSizes(); } /** Get the Sprite for a glyph */ static inline const Sprite *GetGlyph(FontSize size, uint32 key) |