PgGlyphItem.getLogicalWidths

Given a PangoGlyphItem and the corresponding text, determine the width corresponding to each character.

When multiple characters compose a single cluster, the width of the entire cluster is divided equally among the characters.

See also [method@Pango.GlyphString.get_logical_widths].

class PgGlyphItem
void
getLogicalWidths
(
string text
,)

Parameters

text string

text that @glyph_item corresponds to (glyph_item->item->offset is an offset from the start of @text)

logicalWidths int[]

an array whose length is the number of characters in glyph_item (equal to glyph_item->item->num_chars) to be filled in with the resulting character widths.

Meta

Since

1.26