Package: pango

Function pango:layout-iter-line-yrange

Lambda List

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

Syntax

(pango:layout-iter-line-yrange iter) => y0, y1

Arguments

iter -- a pango:layout-iter instance
y0 -- an integer for the start of the line
y1 -- an integer for the end of the line

Details

Divides the vertical space in the Pango layout being iterated over between the lines in the Pango 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 pango:layout-spacing function has been called to set layout spacing. The y0 and y1 positions are in Pango layout coordinates (origin at top left of the entire layout).

Notes

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

See also

2025-05-02