Skip to content

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:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


KernNode.subtype


KernNode.subtype : KernNodeSubtype

KernNode.kern


KernNode.kern : integer

Fixed horizontal or vertical advance (in scaled points)