(svn r23275) -Codechange: allow loading of the monospace (freetype) font at another moment than the other fonts

This commit is contained in:
rubidium
2011-11-20 11:59:36 +00:00
parent 49047246fa
commit 17db686187
4 changed files with 55 additions and 38 deletions

View File

@@ -1750,7 +1750,7 @@ const char *GetCurrentLanguageIsoCode()
*/
bool MissingGlyphSearcher::FindMissingGlyphs(const char **str)
{
InitFreeType();
InitFreeType(false);
const Sprite *question_mark[FS_END];
for (FontSize size = FS_BEGIN; size < FS_END; size++) {
@@ -1856,7 +1856,7 @@ void CheckForMissingGlyphs(bool base_font, MissingGlyphSearcher *searcher)
/* Our fallback font does miss characters too, so keep the
* user chosen font as that is more likely to be any good than
* the wild guess we made */
InitFreeType();
InitFreeType(false);
}
}
#endif