Struct LayoutOptions

Struct Documentation

struct LayoutOptions

Owned shaping options; positions and widths use local Y-up pixels, independent of framebuffer scaling.

Public Members

std::uint32_t pixel_height = 32

Positive font em size in pixels.

::CE::Text::ParagraphDirection direction = ::CE::Text::ParagraphDirection::Automatic

Bidi paragraph base direction.

std::optional<float> maximum_width

Positive finite local wrapping width; unset uses explicit line breaks only.

std::string language = "und"

BCP 47 shaping hint; und is unspecified, not an admitted-script restriction.

FontStyle font_style

Requested face style when shaping a retained Font; collection overload uses its existing faces.