class KernNode
- supers: Node
The kern
command creates such nodes but for instance the font and math
machinery can also add them.
Example:
assert.node_type("kern", nil, {
id = "kern (13)",
subtypes = {
"fontkern (0)",
"userkern (1)",
"accentkern (2)",
"italiccorrection (3)",
},
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"kern (4)",
"expansion_factor (5)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L836-L839
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
KernNode.subtype
KernNode.kern
Fixed horizontal or vertical advance (in scaled points)