Skip to content

class FontInfo

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


FontInfo.fontname


FontInfo.fontname : string

The PostScript name of the font, for example NimbusRoman-Regular.

FontInfo.fullname


FontInfo.fullname : string

The formal name of the font, for example NimbusRoman-Regular.

FontInfo.familyname


FontInfo.familyname : string

The family name this font belongs to, for example Nimbus Roman.

FontInfo.weight


FontInfo.weight : string

A string indicating the color value of the font, for example Book.

FontInfo.version


FontInfo.version : string

The internal font version, for example 1.00,

FontInfo.italicangle


FontInfo.italicangle : number

The slant angle, for example 0.0, -12.0, -9.4626, -10.5, -15.5 or 11.0.

FontInfo.units_per_em


FontInfo.units_per_em : number

1000 for PostScript-based fonts, usually 2048 for TrueType, for example 1000.

FontInfo.pfminfo


FontInfo.pfminfo : FontloaderPfminfo {
    pfmset: integer,
    winascent_add: integer,
    windescent_add: integer,
    hheadascent_add: integer,
    hheaddescent_add: integer,
    typoascent_add: integer,
    typodescent_add: integer,
    subsuper_set: integer,
    panose_set: integer,
    hheadset: integer,
    vheadset: integer,
    pfmfamily: integer,
    ...(+34)
}

FontInfo.names


FontInfo.names : FontloaderLangName {
    lang: string,
    names: FontloaderTrueTypeNames,
}

https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/blob/a4b8e13d3879e95c21e1719af0c3e31722bedd4f/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c#L2278-2282