@@ -21,11 +21,18 @@ 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.
* @return The sprite.
@@ -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 */