Text editing operations: a mutable buffer plus a byte-offset cursor, and the operations that keep it ...
bool is_initialized()
Returns true after a successful initialize() call.
bool add_fallback_font(const std::string &font_path)
Load a font file and register it as a fallback on the default atlas.
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.
std::shared_ptr< LayoutResult > create_layout(std::string_view text, float pen_x, float pen_y, uint32_t wrap_w)
Lay out a UTF-8 string into screen-space glyph quads using the default atlas.
GlyphAtlas & get_default_atlas()
Return the default GlyphAtlas, or nullptr if set_default_font() has not been called successfully.