Package: pango

Function pango-layout-line-pixel-extents

Lambda List

pango-layout-line-pixel-extents (line)

Arguments

iter -- a pango-layout-iter instance

Return Value

ink-rect -- a pango-rectangle instance with the extents of the glyph string as drawn, or NULL
logical-rect -- a pango-rectangle instance with extents of the glyph string, or NULL

Details

Computes the logical and ink extents of line in device units. This function just calls the function pango-layout-line-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-16