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:
 
Parameters
font | a [pango.font.Font] |
inkRect | rectangle used to store the extents of the glyph string as drawn |
logicalRect | rectangle used to store the logical extents of the glyph string |