RetroFont#destroy()
  • References/Game Development/Phaser/Text/RetroFont

destroy(destroyBase) Destroys this texture Parameters Name

2025-01-10 15:47:30
RetroFont#noFrame
  • References/Game Development/Phaser/Text/RetroFont

noFrame : boolean Does this Texture have any frame data assigned to it? Inherited

2025-01-10 15:47:30
RetroFont#getCanvas()
  • References/Game Development/Phaser/Text/RetroFont

getCanvas() → {HTMLCanvasElement} Creates a Canvas element, renders this RenderTexture to it and

2025-01-10 15:47:30
RetroFont#setFrame()
  • References/Game Development/Phaser/Text/RetroFont

setFrame(frame) Specifies the region of the baseTexture that this texture will use. Parameters

2025-01-10 15:47:30
RetroFont#resize()
  • References/Game Development/Phaser/Text/RetroFont

resize(width, height, updateBase) Resizes the RenderTexture. Parameters

2025-01-10 15:47:30
RetroFont#isTiling
  • References/Game Development/Phaser/Text/RetroFont

isTiling : boolean Is this a tiling texture? As used by the likes of a TilingSprite.

2025-01-10 15:47:30
RetroFont.ALIGN_CENTER
  • References/Game Development/Phaser/Text/RetroFont

[static] ALIGN_CENTER : string Align each line of multi-line text in the center.

2025-01-10 15:47:30
RetroFont#game
  • References/Game Development/Phaser/Text/RetroFont

game : Phaser.Game A reference to the currently running game

2025-01-10 15:47:30
RetroFont#offsetY
  • References/Game Development/Phaser/Text/RetroFont

[readonly] offsetY : number If the font set doesn't start at the top left of the given image

2025-01-10 15:47:30
RetroFont#getLongestLine()
  • References/Game Development/Phaser/Text/RetroFont

getLongestLine() → {number} Works out the longest line of text in _text and returns its length

2025-01-10 15:47:30