Rasterizes and packs glyphs from a FontFace into a TextureContainer.
GlyphAtlas * get_default_glyph_atlas() const
Return the default GlyphAtlas, or nullptr if set_default_font() has not been called successfully.
TypeFaceFoundry & operator=(TypeFaceFoundry &&)=delete
bool is_initialized() const
Returns true after a successful initialize() call.
std::unique_ptr< FontFace > m_default_face
std::unique_ptr< GlyphAtlas > m_default_atlas
TypeFaceFoundry(const TypeFaceFoundry &)=delete
static TypeFaceFoundry & instance()
TypeFaceFoundry & operator=(const TypeFaceFoundry &)=delete
TypeFaceFoundry(TypeFaceFoundry &&)=delete
FT_Library get_library() const
Raw FT_Library handle for use by FontFace.
Singleton owner of the FT_Library handle.
bool set_default_font(std::string_view family, std::string_view style, uint32_t pixel_size, uint32_t atlas_size)
Locate a system font by family and style, then load it as the default.