Skip to content

class FontCharacter

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


FontCharacter.width


FontCharacter.width : integer

The character's width, in sp (default 0)

FontCharacter.height


FontCharacter.height : integer

The character's height, in sp (default 0)

FontCharacter.depth


FontCharacter.depth : integer

The character's depth, in sp (default 0)

FontCharacter.italic


FontCharacter.italic : integer

The character's italic correction, in sp (default zero)

FontCharacter.top_accent


FontCharacter.top_accent : integer

The character's top accent alignment place, in sp (default zero)

FontCharacter.bot_accent


FontCharacter.bot_accent : integer

The character's bottom accent alignment place, in sp (default zero)

FontCharacter.left_protruding


FontCharacter.left_protruding : integer

The character's lpcode

FontCharacter.right_protruding


FontCharacter.right_protruding : integer

The character's rpcode

FontCharacter.expansion_factor


FontCharacter.expansion_factor : integer

The character's efcode

FontCharacter.tounicode


FontCharacter.tounicode : string

The character's Unicode equivalent(s), in UTF-8-16BE hexadecimal format

FontCharacter.next


FontCharacter.next : integer

The “next larger” character index

FontCharacter.extensible


FontCharacter.extensible : FontCharacterExtensible {
    top: integer,
    mid: integer,
    bot: integer,
    rep: integer,
}

The constituent parts of an extensible recipe

FontCharacter.vert_variants


FontCharacter.vert_variants : FontCharacterComponent[]

The constituent parts of a vertical variant set

FontCharacter.horiz_variants


FontCharacter.horiz_variants : FontCharacterComponent[]

The constituent parts of a horizontal variant set

FontCharacter.kerns


FontCharacter.kerns : table

The kerning information. The kerns table is a hash indexed by character index (and “character index” is defined as either a non-negative integer or the string value right_boundary), with the values of the kerning to be applied, in scaled points.

FontCharacter.ligatures


FontCharacter.ligatures : table<(integer|"right_boundary"),FontCharacterLigature>

The ligaturing information. The ligatures table is a hash indexed by character index (and “character index” is defined as either a non-negative integer or the string value right_boundary), with the values being yet another small hash.

FontCharacter.commands


FontCharacter.commands : FontCharacterCommands

The virtual font commands

FontCharacter.name


FontCharacter.name : string

The character (PostScript) name

FontCharacter.index


FontCharacter.index : integer

The (OpenType or TrueType) font glyph index

FontCharacter.used


FontCharacter.used : boolean

Already typeset (default: false)

FontCharacter.mathkern


FontCharacter.mathkern : table

The math cut-in specifications