(svn r15849) -Codechange: provide easy access to the real height of the used fonts

This commit is contained in:
rubidium
2009-03-25 20:01:34 +00:00
parent 3b748ec62f
commit 1328acc03e
4 changed files with 38 additions and 12 deletions

View File

@@ -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)