Phaser API Documentation

  Version: 
setResolution(value)

Description:

Set the resolution used by the Text object.

By default it will be set to match the resolution set in the Game Config, but you can override it via this method. It allows for much clearer text on High DPI devices, at the cost of memory because it uses larger internal Canvas textures for the Text.

Please use with caution, as the more high res Text you have, the more memory it uses up.

Parameters:

name type description
value number

The resolution for this Text object to use.

Returns:
Description:

The parent Text object.

Examples:
Since: 3.12.0