Phaser API Documentation

  Version: 
<static> Parse(scene, config)

Description:

Parses a Retro Font configuration object so you can pass it to the BitmapText constructor and create a BitmapText object using a fixed-width retro font.

Parameters:

name type description
scene Phaser.Scene

A reference to the Phaser Scene.

config Phaser.Types.GameObjects.BitmapText.RetroFontConfig

The font configuration object.

Returns:
Description:

A parsed Bitmap Font data entry for the Bitmap Font cache.

Type:
  • object
Since: 3.0.0