GlyphString.extentsRange

void extentsRange(int start, int end, pango.font.Font font, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect)

Computes the extents of a sub-portion of a glyph string.

The extents are relative to the start of the glyph string range (the origin of their coordinate system is at the start of the range, not at the start of the entire glyph string).

Parameters

startstart index
endend index (the range is the set of bytes with indices such that start <= index < end)
fonta [pango.font.Font]
inkRectrectangle used to store the extents of the glyph string range as drawn
logicalRectrectangle used to store the logical extents of the glyph string range