Class Prepared

Class Documentation

class Prepared

Owned CPU layout, grayscale pages and geometry.

Only distinct visible glyphs used by this message are admitted; spaces/empty outlines keep their advances without quads. Optional positioned geometry repeats quads in authored order for run submission. No provider is retained or invoked during preparation.

Public Functions

inline const ShapedText &layout() const noexcept

Declaration: [[nodiscard]]

Borrow the retained immutable shaping result.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const PreparedPage> pages() const noexcept

Declaration: [[nodiscard]]

Borrow owned CPU alpha pages and glyph vertices.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const GlyphDraw> draws() const noexcept

Declaration: [[nodiscard]]

Borrow visible glyph placements in authored order.

Keep this value alive and unmoved while using a returned view/reference.

inline bool has_positioned_runs() const noexcept

Declaration: [[nodiscard]]

Return whether positioned-run preparation was requested, even if no visible glyphs exist.

inline std::span<const CE::Rendering::Geometry::Vertex2D> positioned_vertices() const noexcept

Declaration: [[nodiscard]]

Borrow optional positioned whole-text vertices; empty without runs or visible glyphs.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const DrawRun> runs() const noexcept

Declaration: [[nodiscard]]

Borrow ordered positioned-geometry ranges by atlas page.

Keep this value alive and unmoved while using a returned view/reference.