Layout.getPixelSize

void getPixelSize(out int width, out int height)

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.types.SCALE. This is simply a convenience function around pango.layout.Layout.getPixelExtents.

Parameters

widthlocation to store the logical width
heightlocation to store the logical height