Layout.getPixelExtents

Computes the logical and ink extents of layout in device units.

This function just calls pango.layout.Layout.getExtents followed by two funcextents_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 funcPango.extents_to_pixels).

class Layout
void
getPixelExtents

Parameters

inkRect pango.types.Rectangle

rectangle used to store the extents of the layout as drawn

logicalRect pango.types.Rectangle

rectangle used to store the logical extents of the layout