summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h6
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)