Taos API Reference
    Preparing search index...

    Interface AtlasGlyph

    One glyph's place in the atlas + its typesetting metrics, all in atlas pixels.

    interface AtlasGlyph {
        x: number;
        y: number;
        w: number;
        h: number;
        xOffset: number;
        yOffset: number;
        advance: number;
    }
    Index

    Properties

    Properties

    x: number

    Atlas sub-rect of the glyph's SDF (pixels).

    y: number
    w: number
    h: number
    xOffset: number

    Offset from the pen origin (on the baseline) to the quad's top-left (px, y-down).

    yOffset: number
    advance: number

    Pen advance to the next glyph (px).