Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Interface PositionedGlyph

    One glyph, positioned relative to the start of its run, in points.

    interface PositionedGlyph {
        advance: number;
        cluster: number;
        id: number;
        xOffset: number;
        yOffset: number;
    }
    Index
    advance: number

    Pen advance after drawing this glyph, in points (kerning already folded in).

    cluster: number

    Index into the run's source text that this glyph came from. Several glyphs may share one cluster (a decomposed accent) and one glyph may cover several (the fi ligature); PDF emission needs it to build /ToUnicode.

    id: number

    Glyph index in the font — not a Unicode code point.

    xOffset: number

    Draw-time offset from the pen position, in points. Usually 0.

    yOffset: number

    Draw-time offset from the baseline, in points. Positive is up. Usually 0.