API reference
Preparing search index…

ShapedGlyph

A single shaped glyph and its layout information.

interface ShapedGlyph {
    baseline: number;
    cluster: number;
    glyph: ReadonlyValue<Glyph>;
    position: ReadonlyValue<Vector2f>;
    textDirection: TextDirection;
    vertexCount: number;
    vertexOffset: number;
}
Source & inheritance
Member directory7

Properties

Properties

baseline: number

Baseline coordinate of the line containing the glyph.

Source & inheritance
cluster: number

UTF-16 index into getString(), suitable for JS slice/substring.

Source & inheritance

Read-only view of font glyph metrics.

Source & inheritance

Glyph position in text-local coordinates.

Source & inheritance
textDirection: TextDirection

Direction of the text segment containing the glyph.

Source & inheritance
vertexCount: number

Number of vertices occupied by the glyph.

Source & inheritance
vertexOffset: number

Index of the glyph's first vertex in the vertex data.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0