LayoutLine.getPixelExtents

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

This function just calls pango.layout_line.LayoutLine.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 funcextents_to_pixels).

class LayoutLine
void
getPixelExtents

Parameters

inkRect pango.types.Rectangle

rectangle used to store the extents of the glyph string as drawn

logicalRect pango.types.Rectangle

rectangle used to store the logical extents of the glyph string