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.
Parameters
text | the text for the run |
analysis | the analysis information return from funcitemize |
index | the byte index within text |
trailing | whether we should compute the result for the beginning (false) or end (true) of the character. |
xPos | location to store result |