Function CE::Text::layout_text(const Font&, std::string_view, const LayoutOptions&)

Function Documentation

ShapedText CE::Text::layout_text(const Font &font, std::string_view text, const LayoutOptions &options = {})

Declaration: [[nodiscard]]

Shape using font.collection(options.font_style), selecting one nearest face per retained family.

The original Context is unnecessary; an empty Font rejects. Source ownership, wrapping and errors otherwise follow the collection overload.