API reference
Preparing search index…

Rml::FontEffect with writable metadata and native virtual glyph operations.

Writes copy metadata and retain the original effect's glyph implementation. Lists and Properties retain the prior immutable effect. A list getter gives independent wrappers; assign them back to publish edits. Shutdown invalidates every effect wrapper. Supply callbacks to register native overrides. Native styles and default font layers retain callbacks. Font layers survive document closure until releaseFontResources(); detached owner cycles remain collectable. Custom parsers may construct effects without nested parsing.

Implements

Source & inheritance
Member directory8

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Generate native premultiplied RGBA glyph pixels into the destination view.

    Parameters

    destination
    Uint8Array

    Writable non-shared bytes; must not overlap the glyph.

    dimensions

    Destination glyph area in pixels.

    stride
    number

    Bytes between destination rows, at least width times four.

    glyph

    Source bitmap and metrics.

    Returns

    void
    Source & inheritance
  • Rml::FontEffect::FillColorValuesFromAlpha; copy alpha to RGB in place.

    Parameters

    destination
    Uint8Array

    Writable non-shared RGBA bytes.

    dimensions

    Integer width and height in pixels.

    stride
    number

    Row stride in bytes, at least width times four.

    Returns

    void

    Only the specified RGBA pixels change; row padding is preserved. This pure native pixel operation also works before initialization, after shutdown, and in workers.

    Source & inheritance

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