Add: MockFontCache for testing GUI code that only needs to know font sizes.

This commit is contained in:
Peter Nelson
2023-11-02 11:15:41 +00:00
committed by Peter Nelson
parent af4c7799fe
commit 46f63074da
3 changed files with 47 additions and 2 deletions

View File

@@ -19,9 +19,8 @@ static const GlyphID SPRITE_GLYPH = 1U << 30;
/** Font cache for basic fonts. */
class FontCache {
private:
static FontCache *caches[FS_END]; ///< All the font caches.
protected:
static FontCache *caches[FS_END]; ///< All the font caches.
FontCache *parent; ///< The parent of this font cache.
const FontSize fs; ///< The size of the font.
int height; ///< The height of the font.