On this page

britzl/defold-richtext/richtext.tags

Rich-text rendering for Defold: styled spans, embedded tags, and per-color text runs.

  • GitHub: britzl/defold-richtext — pinned to 2fe3aed
    1. Pick a release from britzl/defold-richtext releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as tags from "richtext.tags"

Functions

register(tag: string, fn: (params?: string, settings?: {}) => void)

Parameters

  • tag: string
  • fn: (params?: string, settings?: {}) => void

apply(tag: string, params?: string, settings?: {})

Parameters

  • tag: string
  • params?: string
  • settings?: {}