LayoutLine.indexToX

void indexToX(int index, bool trailing, out int xPos)

Converts an index within a line to a X position.

Parameters

indexbyte offset of a grapheme within the layout
trailingan integer indicating the edge of the grapheme to retrieve the position of. If > 0, the trailing edge of the grapheme, if 0, the leading of the grapheme
xPoslocation to store the x_offset (in Pango units)