31 void SetFontSize(
int pixels);
34 const Sprite *InternalGetGlyph(GlyphID key,
bool aa)
override;
40 GlyphID
MapCharToGlyph(
char32_t key,
bool allow_fallback =
true)
override;
Helper types related to the allocation of memory.
const FontSize fs
The size of the font.
A reusable buffer that can be used for places that temporary allocate a bit of memory and do that ver...
TrueTypeFontCache(FontSize fs, int pixels)
Create a new TrueTypeFontCache.
HGDIOBJ old_font
Old font selected into the GDI context.
std::string fontname
Cached copy of loaded font facename.
HFONT font
The font face associated with this font.
GlyphID MapCharToGlyph(char32_t key, bool allow_fallback=true) override
Map a character into a glyph.
HDC dc
Cached GDI device context.
const void * GetOSHandle() override
Get the native OS font handle, if there is one.
void ClearFontCache() override
Reset cached glyphs.
std::string GetFontName() override
Get the name of this font.
LOGFONT logfont
Logical font information for selecting the font face.
SIZE glyph_size
Maximum size of regular glyphs.
Win32FontCache(FontSize fs, const LOGFONT &logfont, int pixels)
Create a new Win32FontCache.
ReusableBuffer< uint8_t > render_buffer
Temporary buffer for rendering glyphs.
FontSize
Available font sizes.
Data structure describing a sprite.
Common base definition for font file based font caches.
Declarations of functions for MS windows systems.