API reference
Preparing search index…

FontWidthsCallback

Compatibility bulk text measurement hook.

  • Measure independent string snapshots in one call.

    Parameters

    face

    Owned face token.

    strings
    readonly string[]

    Text snapshots in output order.

    shaping

    Frozen shaping argument snapshot.

    priorCharacter
    number

    Previous Unicode codepoint, or zero.

    Returns

    Int32Array

    Attached fixed Int32Array matching the string count.

    Source & inheritance

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