Skip to main content

Module text

Module text 

Source

Structs§

RichSegment
RichText
A rich text value composed of styled segments.
TextExtents
Measured pixel extents of a laid-out RichText.

Traits§

MeasureText
Text measurement contract.

Functions§

greek_char
Map Latin a-z/A-Z to the matching Greek letter following the Adobe Symbol encoding. Other input (digits, whitespace, already-Greek, etc.) passes through unchanged.
rich_segments_from_text
One plain RichSegment per char, mapping Unicode super/subscript chars to styled segments. Public because the renderer’s Chart text builders (with_title, …) construct plain titles through this.