GlyphString.indexToXFull

Converts from character position to x position.

This variant of pango.glyph_string.GlyphString.indexToX additionally accepts a pango.types.LogAttr array. The grapheme boundary information in it can be used to disambiguate positioning inside some complex clusters.

class GlyphString
void
indexToXFull

Parameters

text string

the text for the run

analysis pango.analysis.Analysis

the analysis information return from funcitemize

attrs pango.types.LogAttr

pango.types.LogAttr array for text

index int

the byte index within text

trailing bool

whether we should compute the result for the beginning (false) or end (true) of the character.

xPos int

location to store result