diff options
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 5 |
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 |