Package: pango

Function pango-layout-index-to-pos

Lambda List

pango-layout-index-to-pos (layout index)

Arguments

layout -- a pango-layout object
index -- an integer with the byte index within layout

Return Value

A pango-rectangle instance with the position of the grapheme.

Details

Converts from an index within a Pango layout to the onscreen position corresponding to the grapheme at that index, which is represented as rectangle. Note that pos->x is always the leading edge of the grapheme and pos->x + pos->width the trailing edge of the grapheme. If the directionality of the grapheme is right-to-left, then pos->width will be negative.
 

See also

2021-1-15