Expand description
Text layout: measurement, word wrapping, and bounded alignment.
The entry point is TextLayout, a builder that accepts a Line and
layout parameters, then either measures the result or renders it into a
Terminal.
Only available when the egc feature is enabled (requires alloc).
Structsยง
- Text
Layout - Builder for laying out a
Linewithin a boundedRect. - Text
Metrics - The display dimensions of a laid-out block of text.
- Wrapped
Glyph ๐ - One grapheme on a wrapped line, ready to be placed or measured.
- Wrapped
Line ๐ - A line produced by the word-wrap pass.
Enumsยง
- HAlign
- Horizontal alignment within a bounded rectangle.
- VAlign
- Vertical alignment within a bounded rectangle.