API reference
Preparing search index…

Native-owned Rml::FontGlyph with mapped metrics and retained bitmap storage.

Bitmap assignment copies the given view into a native unique allocation. Weak copies and exported views retain that allocation after replacement or collection of the source glyph. Numeric fields and bytes outlive shutdown.

Source & inheritance
Member directory12

Constructors

Accessors

Methods

Constructors

Accessors

  • get advance(): number

    Cursor advance in pixels, Rml::FontGlyph::advance.

    Returns

    number

    Integer advance.

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

    Set the native cursor advance.

    Parameters

    value
    number

    Signed integer pixel advance.

    Returns

    void
    Source & inheritance
  • get advanceView(): Int32Array

    Writable native advance mapping.

    Returns

    Int32Array

    One signed integer.

    Source & inheritance
  • get bearingView(): Int32Array

    Writable native bearing mapping.

    Returns

    Int32Array

    Two signed integers.

    Source & inheritance
  • get bitmapData(): null | Uint8Array

    Retained view of bitmap_data; assignment copies bytes or clears with null.

    Returns

    null | Uint8Array

    Native bytes, or null.

    Source & inheritance
  • set bitmapData(value: null | Uint8Array): void

    Replace bitmap data with an owned copy.

    Parameters

    value
    null | Uint8Array

    Bytes to copy, or null to clear.

    Returns

    void
    Source & inheritance
  • get bitmapDimensionsView(): Int32Array

    Writable native bitmap dimension mapping; checked by effect operations.

    Returns

    Int32Array

    Two signed integers.

    Source & inheritance
  • get bitmapOwnedData(): null | Uint8Array

    Owned allocation view; null on weak copies. Writes also set bitmapData.

    Returns

    null | Uint8Array

    Owned native bytes, or null.

    Source & inheritance
  • set bitmapOwnedData(value: null | Uint8Array): void

    Replace owned bitmap storage and select it as bitmapData.

    Parameters

    value
    null | Uint8Array

    Bytes to copy, or null to clear both pointers.

    Returns

    void
    Source & inheritance
  • get colorFormatView(): Int32Array

    Writable native format mapping; checked by effect operations.

    Returns

    Int32Array

    One ColorFormat integer.

    Source & inheritance

Methods

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