Name
pglyphstring:Set -- set glyph info
Synopsis
pglyphstring:Set(index, table)
Function
Sets positioning information and visual attributes for the glyph at index. The data to set must be passed as one or more key-value pairs in the table argument. The following keys are currently supported:

Glyph
The glyph itself.
Width
The logical width to use for the the character.
XOffset
Horizontal offset from nominal character position.
YOffset
Vertical offset from nominal character position.
IsClusterStart
Set for the first logical glyph in each cluster.
LogCluster
Logical cluster info, indexed by the byte index within the text corresponding to the glyph string.

Inputs
index
glyph to use
table
a table consisting of key-value pairs of the data to set

Show TOC