Layout.getSize

void getSize(out int width, out int height)

Determines the logical width and height of a [pango.layout.Layout] in Pango units.

This is simply a convenience function around [pango.layout.Layout.getExtents].

Parameters

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