ink_rect, logical_rect = pglyphstring:ExtentsRange(start, end, font)
x
, y
, width
, and height
fields initialized.
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).