Skip to content

class MarginKernNode

  • supers: Node

Margin kerns result from protrusion.

Example:

assert.node_type("margin_kern", nil, {
  id = "margin_kern (28)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "width (4)",
    "glyph (5)",
  },
})

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


MarginKernNode.subtype


MarginKernNode.subtype : MarginKernNodeSubtype

MarginKernNode.attr


MarginKernNode.attr : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

A list of attributes.

MarginKernNode.width


MarginKernNode.width : integer

the advance of the kern

MarginKernNode.glyph


MarginKernNode.glyph : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

the glyph to be used