Skip to main content
One line of a Text after wrapping. Iterate it to visit its glyphs in visual order, left to right, whatever the writing direction.

Fields

index

1 based index of the line within the text.

x

Left edge after alignment.

top

baseline

bottom

width

direction

Base direction of the paragraph the line belongs to.

firstIndex

First and last codepoint index on the line, 1 based.

lastIndex

glyphCount

Methods

glyph

The glyph at a 1 based visual position.

glyphs

All glyphs in visual order.

__iter

Iterates the glyphs in visual order: for _, glyph in line do.