Class ShapedText

Class Documentation

class ShapedText

Owned immutable layout and original scalar/byte mappings.

No source string, provider, native resources or mutable font face is retained. Instances retain their font-byte snapshot, so subsequent glyph preparation uses the same faces.

Public Functions

inline const ::CE::Text::FontCollection &fonts() const noexcept

Declaration: [[nodiscard]]

inline const ::CE::Text::LayoutOptions &options() const noexcept

Declaration: [[nodiscard]]

inline std::span<const ::CE::Text::Utf8Scalar> scalars() const noexcept

Declaration: [[nodiscard]]

inline std::span<const ::CE::Text::ShapedGlyph> glyphs() const noexcept

Declaration: [[nodiscard]]

inline std::span<const ::CE::Text::TextLine> lines() const noexcept

Declaration: [[nodiscard]]

inline float line_height() const noexcept

Declaration: [[nodiscard]]