Package: pango

Function pango:layout-pixel-extents

Lambda List

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

Arguments

layout -- a pango:layout object
ink -- a pango:rectangle instance to fill with the extents of the Pango layout as drawn, or nil
logical -- a pango:rectangle instance to fill with the logical extents of the Pango layout, or nil

Details

Computes the logical and ink extents of the Pango layout in device units. This function just calls the pango:layout-extents function followed by two pango:extents-to-pixels function calls, rounding the ink and logical values 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