docx
    Preparing search index...

    Type Alias FontFile

    A font file to measure text in.

    type FontFile = {
        data: FontData;
        name?: string;
    }
    Index
    data: FontData

    The file's bytes: a TrueType or OpenType font (.ttf or .otf), or a collection of them (.ttc). Web fonts (.woff and .woff2) are compressed, and can't be read

    name?: string

    The name documents give the font, when it isn't the name in the file, such as "Calibri" for a file of Carlito, which is as wide. Each font in the file has the name it gives itself by default, such as "Aptos"