Name
pglyphstring:GetLogicalWidths -- get logical widths
Synopsis
t = pglyphstring:GetLogicalWidths(text$, embedding_level)
Function
Given a Pango glyph string 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. The individual widths are returned in a table.

See also pglyphitem:GetLogicalWidths().

Inputs
text$
the text corresponding to the glyphs
embedding_level
the embedding level of the string
Results
logical_widths
table containing the resulting character widths

Show TOC