Skip to content

class MathCharNode

  • supers: Node

The math_char is the simplest subnode field, it contains the character and family for a single glyph object.

Example:

assert.node_type("math_char", nil, {
  id = "math_char (23)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "fam (4)",
    "char (5)",
  },
})

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


MathCharNode.attr


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

A list of attributes.

MathCharNode.char


MathCharNode.char : integer

The character index.

MathCharNode.fam


MathCharNode.fam : integer

The family number.