summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2010-11-23 17:59:50 +0000
committerglx <glx@openttd.org>2010-11-23 17:59:50 +0000
commitd9173858a2740eee017ba2177c054e44d1842a3c (patch)
treeb093dc402aa6c335b44c4ffdc2c07e3dce02a456 /src/fontcache.h
parentc72fdad0bb0e4ae825cc61bdd2d72ac58e6213bb (diff)
downloadopenttd-d9173858a2740eee017ba2177c054e44d1842a3c.tar.xz
(svn r21298) -Fix [FS#4261]: fonts set in openttd.cfg were not properly checked for missing glyphs on language change
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index b4bdc7a99..8148cba3c 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -46,6 +46,7 @@ void UninitFreeType();
const Sprite *GetGlyph(FontSize size, uint32 key);
uint GetGlyphWidth(FontSize size, uint32 key);
+typedef bool (SetFallbackFontCallback)(const char **);
/**
* We would like to have a fallback font as the current one
* doesn't contain all characters we need.
@@ -53,10 +54,10 @@ uint GetGlyphWidth(FontSize size, uint32 key);
* @param settings the settings to overwrite the fontname of.
* @param language_isocode the language, e.g. en_GB.
* @param winlangid the language ID windows style.
- * @param str Sample string.
+ * @param callback The function to call to check for missing glyphs.
* @return true if a font has been set, false otherwise.
*/
-bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, const char *str);
+bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, SetFallbackFontCallback *callback);
#else