46 static const u32 CACHE_SIZE = 10;
51 } m_fontCache[CACHE_SIZE];
54 static const char * DEFAULT_FONT;
55 static const u32 DEFAULT_FONT_SIZE;
57 Fonts() : m_initted(
false) { }
61 TTF_Font * GetFont(
const char * resourcePath, u32 size) ;
63 TTF_Font * GetDefaultFont(u32 size = DEFAULT_FONT_SIZE) {
64 return GetFont(DEFAULT_FONT, size);