Taos API Reference
    Preparing search index...

    Interface FontMetrics

    A rasterized font: per-code-point glyphs + vertical metrics + the atlas size for UV normalizing.

    interface FontMetrics {
        glyphs: Map<number, AtlasGlyph>;
        lineHeight: number;
        ascent: number;
        descent: number;
        atlasWidth: number;
        atlasHeight: number;
    }
    Index

    Properties

    glyphs: Map<number, AtlasGlyph>
    lineHeight: number

    Baseline-to-baseline distance (px).

    ascent: number

    Ascent above the baseline (px) — the cap/ascender extent, for vertical centering.

    descent: number

    Descent below the baseline (px, positive).

    atlasWidth: number
    atlasHeight: number