18 #include "precompiled.h"
40 LOGERROR(L
"Failed to find font '%ls'", name.c_str());
bool unifont_has_rgb(const Handle h)
const glyphmap & unifont_get_glyphs(const Handle h)
void CalculateStringSize(const wchar_t *string, int &w, int &h)
int unifont_linespacing(const Handle h)
int GetCharacterWidth(wchar_t c)
int unifont_character_width(const Handle h, wchar_t c)
Status unifont_stringsize(const Handle h, const wchar_t *text, int &width, int &height)
Determine pixel extents of a string.
i64 Handle
`handle' representing a reference to a resource (sound, texture, etc.)
Handle unifont_load(const PIVFS &vfs, const VfsPath &pathname, size_t flags)
Load a font.
int unifont_height(const Handle h)
const std::map< u16, UnifontGlyphData > & GetGlyphs()
Status unifont_unload(Handle &h)
Release a handle to a previously loaded font (subject to reference counting).
const wchar_t * DefaultFont
Handle unifont_get_texture(const Handle h)