Package: pango

Function pango:layout-line-pixel-extents

Lambda List

pango:layout-line-pixel-extents (line ink logical)

Arguments

line -- a pango:layout-line instance
ink -- a pango:rectangle instance to fill with the values of the ink extents of the glyph string as drawn, or nil
logical -- a pango:rectangle instance to fill with the values of the logical extents of the glyph string as drawn, or nil

Details

Computes the logical and ink extents of line in device units. This function just calls the pango:layout-line-extents function followed by two pango:extents-to-pixels function calls, rounding ink and logical such that the rounded rectangles fully contain the unrounded one, that is, passes them as first argument to the pango:extents-to-pixels function.
 

See also

2025-2-15