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§
- Laid
OutText - 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.