Package: pango

Function pango-layout-iter-line-yrange

Lambda List

pango-layout-iter-line-yrange (iter)

Arguments

iter -- a pango-layout-iter instance

Return Value

y0 -- an integer with the start of line, or NULL
y1 -- an integer with the end of line, or NULL

Details

Divides the vertical space in the Pango layout being iterated over between the lines in the layout, and returns the space belonging to the current line. A line's range includes the line's logical extents, plus half of the spacing above and below the line, if the function pango-layout-spacing has been called to set layout spacing. The y positions are in layout coordinates (origin at top left of the entire layout).

Note

Since 1.44, Pango uses line heights for placing lines, and there may be gaps between the ranges returned by this function.
 

See also

2021-1-16