PreciseText

PreciseText

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

Constructor

new PreciseText()

Methods

(static) getTextStyle(anchoropt, optionsopt) → {PIXI.TextStyle}

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

Parameters:
Name Type Attributes Default Description
anchor number <optional>

A text anchor point from CONST.TEXT_ANCHOR_POINTS

options object <optional>
{}

Additional options merged with the default TextStyle

Returns:

The prepared TextStyle

Type
PIXI.TextStyle