Name
pglyphstring:ExtentsRange -- extents range
Synopsis
ink_rect, logical_rect = pglyphstring:ExtentsRange(start, end, font)
Function
Computes the extents of a sub-portion of a glyph string. This will return two tables that have the 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).

Inputs
start
start index
end
end index (the range is the set of bytes with indices such that start <= index < end)
font
a Pango font
Results
ink_rect
table containing the extents of the glyph string range as drawn
logical_rect
table containing the logical extents of the glyph string range

Show TOC