Name
pglyphstring:Extents -- compute glyph string extents
Synopsis
ink_rect, logical_rect = pglyphstring:Extents(font)
Function
Compute the logical and ink extents of a glyph string. This will return two tables that have the x, y, width, and height fields initialized. See the documentation for pfont:GetGlyphExtents() for details about the interpretation of the rectangles.

Examples of logical (red) and ink (green) rects:

Inputs
font
a Pango font
Results
ink_rect
table containing the extents of the glyph string as drawn
logical_rect
table containing the logical extents of the glyph string

Show TOC