Module richtext
Expand description
RichTextLayout — attributed, word-wrapped, hit-testable text layout. The
toolkit’s rich-text primitive (cosmic-text under the hood): per-run
bold/italic, underlines, wrapping to a width, caret geometry, selection
rectangles, and point↔offset hit-testing. Render it with
crate::text_render::TextRenderer::draw_rich.
Structs§
- Rich
Span - A styled inline run.
size/familyoverride the block defaults per run. - Rich
Text Layout - A laid-out block of attributed text.
Enums§
- Baseline
Shift - Per-run baseline shift, for superscript / subscript runs.
- Font
Family - A generic font family the toolkit can resolve from system fonts.
- Text
Align - Horizontal alignment of a block.