Back to API Reference
Struct

LineRangeEntry

sealed

A contiguous run of positioned glyphs within a single line whose clusters fall inside a queried range. Bounds are in local mesh coordinates (relative to the text origin), with X clamped to the line's visible content extent (trailing whitespace excluded per CSS Text §4.1.3 via width).

public int lineIdx

Index of the line in buffers.lines.

public int firstGlyphIdx

Index of the first positioned glyph of this run (inclusive).

public int lastGlyphIdx

Index of the last positioned glyph of this run (inclusive).

public float minX

Left edge of the run in local coordinates, clamped to line content extent.

public float maxX

Right edge of the run in local coordinates, clamped to line content extent.

public float minY

Top edge of the run in local coordinates (uses ascender of glyphs on the line).

public float maxY

Bottom edge of the run in local coordinates (uses descender of glyphs on the line).