(svn r25436) -Codechange: split the font detection code out of the font caching code

This commit is contained in:
rubidium
2013-06-23 15:20:23 +00:00
parent 930c19dae2
commit 13c450a66b
10 changed files with 846 additions and 771 deletions

View File

@@ -49,18 +49,6 @@ const Sprite *GetGlyph(FontSize size, uint32 key);
uint GetGlyphWidth(FontSize size, uint32 key);
bool GetDrawGlyphShadow();
/**
* We would like to have a fallback font as the current one
* doesn't contain all characters we need.
* This function must set all fonts of settings.
* @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 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, class MissingGlyphSearcher *callback);
#else
/* Stub for initializiation */