get_logical_widths


Description:

public void get_logical_widths (string text, int length, int embedding_level, int[] logical_widths)

Given a `PangoGlyphString` and 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.GlyphItem.get_logical_widths].

Parameters:

this

a `PangoGlyphString`

text

the text corresponding to the glyphs

length

the length of text, in bytes

embedding_level

the embedding level of the string

logical_widths

an array whose length is the number of characters in text (equal to `g_utf8_strlen (text, length)` unless text has `NUL` bytes) to be filled in with the resulting character widths.