Expand description
What a renderer reads of a text’s style and string to draw its glyphs, worked out once per text node so that drawing a plain text never loads its style, and drawing a cached run never loads its string.
Structs§
- Text
Paint - The paint of a text node’s glyphs.
- Text
Paint Cache - A text node’s
TextPaint, set when the scene builds the node or when a renderer first asks for it. It is derived data, so two caches always compare equal.
Functions§
- has_
visible_ decoration - Whether the style or a span draws an underline or a line-through.
- resolve_
text_ color_ without_ gradient_ fallback - The text colour a style names, its solid brush’s colour, or
default, times the style’s alpha. - spans_
override_ foreground - Whether a span paints its range with a gradient, an alpha or a draw style of its own.
- spans_
override_ foreground_ color - Whether a span gives its range a colour or a solid brush of its own.