PgGlyphString.indexToX

Converts from character position to x position.

The X position is measured from the left edge of the run. Character positions are computed by dividing up each cluster into equal portions.

class PgGlyphString
void
indexToX
(
string text
,
int length
,,
int index
,,
out int xPos
)

Parameters

text string

the text for the run

length int

the number of bytes (not characters) in @text.

analysis PangoAnalysis*

the analysis information return from [func@itemize]

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

Meta