PgLayout.getPixelExtents

Computes the logical and ink extents of layout in device units. This function just calls Layout.getExtents 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 pango_extents_to_pixels()).

class PgLayout
void
getPixelExtents

Parameters

inkRect PangoRectangle

rectangle used to store the extents of the layout as drawn or NULL to indicate that the result is not needed.

logicalRect PangoRectangle

rectangle used to store the logical extents of the layout or NULL to indicate that the result is not needed.