Package: pango

Function pango:layout-line-index-to-x

Lambda List

pango:layout-line-index-to-x (line index trailing)

Arguments

line -- a pango:layout-line instance
index -- an integer for the byte offset of a grapheme within the Pango layout
trailing -- a boolean indicating the edge of the grapheme to retrieve the position of, if true, the trailing edge of the grapheme, if false, the leading of the grapheme

Return Value

The integer with the x offset (in Pango units).

Details

Converts an index within a line to a x position.
 

See also

#2025-2-15