API reference
Preparing search index…

TextShapingContext

Owned Rml::TextShapingContext language and shared numerical fields.

Native operations snapshot all fields before entering the engine.

Source & inheritance
Member directory7

Constructors

Accessors

Constructors

Accessors

  • get enums(): Int32Array

    Shared Direction/FontKerning int32 fields, in that order.

    Returns

    Int32Array

    View retaining native storage after collection and shutdown.

    Source & inheritance
  • get language(): string

    The language tag used to choose language-specific text shaping.

    Returns

    string

    Owned language string.

    Source & inheritance
  • set language(value: string): void

    Replace owned language storage.

    Parameters

    value
    string

    Language tag.

    Returns

    void
    Source & inheritance
  • get letterSpacing(): number

    Rml::TextShapingContext::letter_spacing in pixels.

    Returns

    number

    Shared float32 spacing.

    Source & inheritance
  • set letterSpacing(value: number): void

    Write the native letter spacing without an addon call.

    Parameters

    value
    number

    Finite float32 pixels within the native int32 range.

    Returns

    void
    Source & inheritance
  • get values(): Float32Array

    Shared float32 letter_spacing field.

    Returns

    Float32Array

    Writable native field; checked at the engine boundary.

    Source & inheritance

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