Layout.getPixelSize

Determines the logical width and height of a pango.layout.Layout in device units.

pango.layout.Layout.getSize returns the width and height scaled by PANGO_SCALE. This is simply a convenience function around pango.layout.Layout.getPixelExtents.

class Layout
void
getPixelSize
(
out int width
,
out int height
)

Parameters

width int

location to store the logical width

height int

location to store the logical height