(svn r25442) -Codechange: move height and ascender information into the FontCache instances

This commit is contained in:
rubidium
2013-06-23 15:32:09 +00:00
parent 49e71c3bee
commit aa9bf82121
4 changed files with 34 additions and 41 deletions

View File

@@ -21,10 +21,17 @@ private:
protected:
FontCache *parent; ///< The parent of this font cache.
const FontSize fs; ///< The size of the font.
int height; ///< The height of the font;
public:
FontCache(FontSize fs);
virtual ~FontCache();
/**
* Get the height of the font.
* @return The height of the font.
*/
inline int GetHeight() { return this->height; }
/**
* Get the SpriteID mapped to the given key
* @param key The key to get the sprite for.
@@ -153,7 +160,7 @@ void UninitFreeType();
#else
/* Stub for initializiation */
static inline void InitFreeType(bool monospace) { extern void ResetFontSizes(bool monospace); ResetFontSizes(monospace); }
static inline void InitFreeType(bool monospace) {}
static inline void UninitFreeType() {}
#endif /* WITH_FREETYPE */