(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 dfefcab47d
commit 9512838a5e
4 changed files with 55 additions and 38 deletions

View File

@@ -42,7 +42,7 @@ struct FreeTypeSettings {
extern FreeTypeSettings _freetype;
void InitFreeType();
void InitFreeType(bool monospace);
void UninitFreeType();
const Sprite *GetGlyph(FontSize size, uint32 key);
uint GetGlyphWidth(FontSize size, uint32 key);
@@ -63,7 +63,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
#else
/* Stub for initializiation */
static inline void InitFreeType() { extern void ResetFontSizes(); ResetFontSizes(); }
static inline void InitFreeType(bool monospace) { extern void ResetFontSizes(bool monospace); ResetFontSizes(monospace); }
static inline void UninitFreeType() {}
/** Get the Sprite for a glyph */