GlyphString.extents

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:

Parameters

font pango.font.Font
inkRect pango.types.Rectangle

rectangle used to store the extents of the glyph string as drawn

logicalRect pango.types.Rectangle

rectangle used to store the logical extents of the glyph string