GlyphString.extents

void extents(pango.font.Font font, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect)

Compute the logical and ink extents of a glyph string.

See the documentation for pango.font.Font.getGlyphExtents for details about the interpretation of the rectangles.

Examples of logical (red) and ink (green) rects:

![](rects1.png) ![](rects2.png)

Parameters

fonta pango.font.Font
inkRectrectangle used to store the extents of the glyph string as drawn
logicalRectrectangle used to store the logical extents of the glyph string