An extension of the default PIXI.Text object which forces double resolution. At default resolution Text often looks blurry or fuzzy.

Hierarchy

  • any
    • PreciseText

Methods

Methods

  • Prepare a TextStyle object which merges the canvas defaults with user-provided options

    Parameters

    • Optional options: {
          anchor: number;
      } = {}

      Additional options merged with the default TextStyle

      • anchor: number

        A text anchor point from CONST.TEXT_ANCHOR_POINTS

    Returns TextStyle

    The prepared TextStyle