GlyphString.indexToX

void indexToX(string text, pango.analysis.Analysis analysis, int index, bool trailing, out int xPos)

Converts from character position to x position.

The X position is measured from the left edge of the run. Character positions are obtained using font metrics for ligatures where available, and computed by dividing up each cluster into equal portions, otherwise.

Glyph positions

Parameters

textthe text for the run
analysisthe analysis information return from funcitemize
indexthe byte index within text
trailingwhether we should compute the result for the beginning (false) or end (true) of the character.
xPoslocation to store result