class GlyphNode
- supers: Node
Example:
assert.node_type("glyph", nil, {
id = "glyph (29)",
subtypes = {
"unset (0)",
"character (1)",
"ligature (2)",
"ghost (4)",
"left (8)",
"right (16)",
},
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"char (4)",
"font (5)",
"lang (6)",
"left (7)",
"right (8)",
"uchyph (9)",
"components (10)",
"xoffset (11)",
"yoffset (12)",
"width (13)",
"height (14)",
"depth (15)",
"expansion_factor (16)",
"data (17)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L801-L816
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
GlyphNode.subtype
A bit field
GlyphNode.attr
GlyphNode.attr : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
A list of attributes.
GlyphNode.char
The character index in the font.
GlyphNode.font
The font identifier.
GlyphNode.lang
The language identifier.
GlyphNode.left
The frozen \lefthyphenmnin value.
GlyphNode.right
The frozen \righthyphenmnin value.
GlyphNode.uchyph
The frozen uchyph value.
GlyphNode.components
GlyphNode.components : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
A Pointer to ligature components.
GlyphNode.xoffset
A virtual displacement in horizontal direction.
GlyphNode.yoffset
A virtual displacement in vertical direction.
GlyphNode.width
The (original) width of the character.
GlyphNode.height
The (original) height of the character.
GlyphNode.depth
The (original) depth of the character.
GlyphNode.expansion_factor
The to be applied expansion factor.
GlyphNode.data
A general purpose field for users (we had room for it).