13 #include "../../core/alloc_type.hpp"
14 #include "../../fontcache/truetypefontcache.h"
31 void SetFontSize(
int pixels);
34 const Sprite *InternalGetGlyph(
GlyphID key,
bool aa)
override;
const FontSize fs
The size of the font.
Font cache for fonts that are based on a TrueType font.
Font cache for fonts that are based on a Win32 font.
HGDIOBJ old_font
Old font selected into the GDI context.
std::string fontname
Cached copy of loaded font facename.
const void * GetOSHandle() override
Get the native OS font handle, if there is one.
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.
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.
void LoadWin32Font(FontSize fs)
Loads the GDI font.
uint32_t GlyphID
Glyphs are characters from a font.
FontSize
Available font sizes.
Data structure describing a sprite.
declarations of functions for MS windows systems