(svn r15849) -Codechange: provide easy access to the real height of the used fonts
This commit is contained in:
@@ -16,6 +16,8 @@ void SetUnicodeGlyph(FontSize size, uint32 key, SpriteID sprite);
|
||||
/** Initialize the glyph map */
|
||||
void InitializeUnicodeGlyphMap();
|
||||
|
||||
void ResetFontSizes();
|
||||
|
||||
#ifdef WITH_FREETYPE
|
||||
|
||||
struct FreeTypeSettings {
|
||||
@@ -51,8 +53,8 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
|
||||
#else
|
||||
|
||||
/* Stub for initializiation */
|
||||
static inline void InitFreeType() {}
|
||||
static inline void UninitFreeType() {}
|
||||
static inline void InitFreeType() { ResetFontSizes(); }
|
||||
static inline void UninitFreeType() { ResetFontSizes(); }
|
||||
|
||||
/** Get the Sprite for a glyph */
|
||||
static inline const Sprite *GetGlyph(FontSize size, uint32 key)
|
||||
|
||||
Reference in New Issue
Block a user