class FontloaderGlyph
Reference:
- Corresponding C source code: luafflib.c#L959-L1120
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
FontloaderGlyph.name
The glyph name, for example space
.
FontloaderGlyph.unicode
The unicode code point, or -1 , for example 32
.
FontloaderGlyph.boundingbox
Array of four numbers, for example { 0, 0, 0, 0 }
.
FontloaderGlyph.width
Only for horizontal fonts
FontloaderGlyph.vwidth
Only for vertical fonts
FontloaderGlyph.tsidebearing
Only for vertical ttf/otf fonts, and only if non-zero
FontloaderGlyph.lsidebearing
Only if non-zero and not equal to boundingbox[1]
FontloaderGlyph.class
one of "none", "base", "ligature", "mark", "component" (if not present, the glyph class is “automatic”)
FontloaderGlyph.kerns
only for horizontal fonts, if set
FontloaderGlyph.vkerns
only for vertical fonts, if set
FontloaderGlyph.dependents
linear array of glyph name strings, only if nonempty
FontloaderGlyph.lookups
only if nonempty
FontloaderGlyph.ligatures
only if nonempty
FontloaderGlyph.anchors
only if set
FontloaderGlyph.comment
only if set
FontloaderGlyph.tex_height
only if set
FontloaderGlyph.tex_depth
only if set
FontloaderGlyph.italic_correction
only if set
FontloaderGlyph.top_accent
only if set
FontloaderGlyph.is_extended_shape
only if this character is part of a math extension list
FontloaderGlyph.altuni
alternate Unicode items
FontloaderGlyph.vert_variants
FontloaderGlyph.vert_variants : FontloaderVertHorizVariants {
variants: string,
italic_correction: number,
parts: FontloaderParts[],
}
FontloaderGlyph.horiz_variants
FontloaderGlyph.horiz_variants : FontloaderVertHorizVariants {
variants: string,
italic_correction: number,
parts: FontloaderParts[],
}