Function CE::Rendering::Submission::resolve_text(const CE::Text::Legacy::Font&, std::string_view, const DrawStyle2D&, const Context2D&, CE::Text::Legacy::LayoutOptions)

Function Documentation

std::vector<DrawPacket2D> CE::Rendering::Submission::resolve_text(const CE::Text::Legacy::Font &font, std::string_view text, const DrawStyle2D &style, const Context2D &context, CE::Text::Legacy::LayoutOptions options = CE::Text::Legacy::LayoutOptions{})

Declaration: [[nodiscard]]

Lay out legacy text on the CPU and resolve ordered six-vertex glyph packets.

Parameters:
  • font – Stable immutable metrics/resources; its encoding/option contract applies.

  • text – Bytes borrowed for this call, never retained.

  • style – Empty material selects the font default; offsets are scaled then transformed by model_matrix.

  • context – Pass inputs; nullopt permits manual image binding for this legacy path.

  • options – Implementation-specific legacy layout options.

Returns:

Owned packets retaining glyph geometry/atlas/material, empty for no visible glyphs. No native calls occur; layout/validation/allocation errors return no result vector and publish no partial frame packets.