10#ifndef SPRITEFONTCACHE_H
11#define SPRITEFONTCACHE_H
23 GlyphID
MapCharToGlyph(
char32_t key,
bool allow_fallback =
true)
override;
const FontSize fs
The size of the font.
SpriteFontCache(FontSize fs)
Create a new sprite font cache.
uint GetGlyphWidth(GlyphID key) override
Get the width of the glyph with the given key.
GlyphID MapCharToGlyph(char32_t key, bool allow_fallback=true) override
Map a character into a glyph.
bool GetDrawGlyphShadow() override
Do we need to draw a glyph shadow?
std::string GetFontName() override
Get the name of this font.
void ClearFontCache() override
Clear the font cache.
const Sprite * GetGlyph(GlyphID key) override
Get the glyph (sprite) of the given key.
bool IsBuiltInFont() override
Is this a built-in sprite font?
Functions to read fonts from files and cache them.
FontSize
Available font sizes.
Data structure describing a sprite.