utf8.offset.
Text
Text
Shapes and lays out styled runs of text with the runtime’s shaper, so
scripts get real line breaking and bidirectional ordering. Append runs,
set the box, then draw it in one call or walk its lines and glyphs to draw
them yourself. Codepoint indices are 1 based like
Creates an empty text.
Appends a styled run. Runs join into one string; a newline starts a paragraph.
Removes every run.
Draws every run with its own paint, or all of them with the given paint.
Minimum and maximum corner of the laid out text.
The line at a 1 based index, top to bottom.
Every line, top to bottom.
The codepoint index nearest a point in the text’s local space.
The caret before the codepoint at index: its x, top and bottom. Nil when the text is empty.
Rectangles covering the codepoints from one index to another, one per glyph.