extents

fun extents(font: Font, inkRect: Rectangle?, logicalRect: Rectangle?)

Compute the logical and ink extents of a glyph string.

See the documentation for method@Pango.Font.get_glyph_extents for details about the interpretation of the rectangles.

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

Parameters

font

a PangoFont

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