PgLayoutLine.getPixelExtents

Computes the logical and ink extents of layout_line in device units. This function just calls Layout.lineGetExtents 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 PgLayoutLine
void
getPixelExtents

Parameters

inkRect PangoRectangle

rectangle used to store the extents of the glyph string as drawn, or NULL

logicalRect PangoRectangle

rectangle used to store the logical extents of the glyph string, or NULL