ShapedText shape(std::string_view text, const FontOptions &options)
Produce a ShapedText for text under options.
std::vector< ShapedText > shape_batch(const std::vector< std::pair< std::string, FontOptions > > &inputs)
Shape N independent inputs in parallel and return the artifacts in input order.
static TextRunPlanner & instance()
Process-wide singleton. Thread-safe.
void clear_cache()
Test-only: discard the internal cache.
The typed, hashable contract that replaces (family_string, size) throughout the font subsystem.
Definition font_options.hpp:190
The canonical output of TextRunPlanner::shape(text, FontOptions).
Definition shaped_text.hpp:132