interface FontMetrics {
    ascender: number;
    descender: number;
    lineGap: number;
    unitsPerEm: number;
}

Properties

ascender: number

The distance, in font units, from the baseline to the highest point of the font.

descender: number

The distance, in font units, from the baseline to the lowest point of the font.

lineGap: number

The additional space used in the calculation of the default line height in font units.

unitsPerEm: number

The number of font units per 1 EM.