Module layout

Source
Expand description

Parley-based layout helpers and caret mapping. Cluster-aware shaping, line metrics, glyph extraction, and caret mapping.

Re-exports§

pub use crate::glyph::GlyphInstance;
pub use crate::params::LaidOutLine;
pub use crate::params::TextLayoutParams;
pub use crate::params::TextMetrics;
pub use crate::params::WrapMode;

Structs§

LaidOutText
Backend-agnostic layout result (Parley types not exposed).

Functions§

caret_index_at_point
Maps layout-space (x, y) to a UTF-8 byte index (cluster-aware).
caret_rect_at
Maps a UTF-8 byte index to a caret rectangle in layout space.
caret_x_at
Maps a UTF-8 byte index to X in layout space (cluster-aware).
layout_text
Shapes text and returns backend-neutral lines, metrics, and glyph access.