Skip to content

class FontloaderGlyph

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


FontloaderGlyph.name


FontloaderGlyph.name : string

The glyph name, for example space.

FontloaderGlyph.unicode


FontloaderGlyph.unicode : integer

The unicode code point, or -1 , for example 32.

FontloaderGlyph.boundingbox


FontloaderGlyph.boundingbox : integer[]

Array of four numbers, for example { 0, 0, 0, 0 }.

FontloaderGlyph.width


FontloaderGlyph.width : integer

Only for horizontal fonts

FontloaderGlyph.vwidth


FontloaderGlyph.vwidth : integer

Only for vertical fonts

FontloaderGlyph.tsidebearing


FontloaderGlyph.tsidebearing : integer

Only for vertical ttf/otf fonts, and only if non-zero

FontloaderGlyph.lsidebearing


FontloaderGlyph.lsidebearing : integer

Only if non-zero and not equal to boundingbox[1]

FontloaderGlyph.class


FontloaderGlyph.class : string

one of "none", "base", "ligature", "mark", "component" (if not present, the glyph class is “automatic”)

FontloaderGlyph.kerns


FontloaderGlyph.kerns : FontloaderGlyphKern[]

only for horizontal fonts, if set

FontloaderGlyph.vkerns


FontloaderGlyph.vkerns : table

only for vertical fonts, if set

FontloaderGlyph.dependents


FontloaderGlyph.dependents : string[]

linear array of glyph name strings, only if nonempty

FontloaderGlyph.lookups


FontloaderGlyph.lookups : table

only if nonempty

FontloaderGlyph.ligatures


FontloaderGlyph.ligatures : table

only if nonempty

FontloaderGlyph.anchors


FontloaderGlyph.anchors : table

only if set

FontloaderGlyph.comment


FontloaderGlyph.comment : string

only if set

FontloaderGlyph.tex_height


FontloaderGlyph.tex_height : integer

only if set

FontloaderGlyph.tex_depth


FontloaderGlyph.tex_depth : integer

only if set

FontloaderGlyph.italic_correction


FontloaderGlyph.italic_correction : integer

only if set

FontloaderGlyph.top_accent


FontloaderGlyph.top_accent : integer

only if set

FontloaderGlyph.is_extended_shape


FontloaderGlyph.is_extended_shape : integer

only if this character is part of a math extension list

FontloaderGlyph.altuni


FontloaderGlyph.altuni : table

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[],
}

FontloaderGlyph.mathkern


FontloaderGlyph.mathkern : FontloaderMathkern {
    top_right: FontloaderMathkernSubtable,
    bottom_right: FontloaderMathkernSubtable,
    top_left: FontloaderMathkernSubtable,
    bottom_left: FontloaderMathkernSubtable,
}