Phaser API Documentation

  Version: 
setResolution(value)

Description:

Set the resolution used by the Text object.

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.

Since: 3.12.0