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

pasteLine(line, x, y, customSpacingX) Internal function that takes a single line of text (2nd parameter) and pastes it into the BitmapData

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

renderRawXY(displayObject, x, y, clear) This function will draw the display object to the RenderTexture

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

new RetroFont(game, key, characterWidth, characterHeight, chars, charsPerRow, xSpacing, ySpacing

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

renderer : PIXI.CanvasRenderer |

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

crop :Rectangle This is the area of the BaseTexture image to actually copy to the Canvas / WebGL when rendering,irrespective

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

getBase64() → {String} Will return a base64 encoded string of this texture. It works by calling

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

height : number The height of the render texture Inherited From

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#game
  • References/Game Development/Phaser/Text/RetroFont

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

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