Package: pango

Function pango-layout-pixel-extents

Lambda List

pango-layout-pixel-extents (layout)

Arguments

layout -- a pango-layout object

Return Value

ink-rect -- a pango-rectangle instance with the extents of the layout as drawn or NULL to indicate that the result is not needed
logical-rect -- a pango-rectangle instance with the logical extents of the layout or NULL to indicate that the result is not needed

Details

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

See also

2021-1-15