playoutline:IndexToX -- convert index to x position
Synopsis
x_pos = playoutline:IndexToX(index, trailing)
Function
Converts an index within a line to a X position.
Inputs
index
byte offset of a grapheme within the layout
trailing
an 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