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

characterSpacingX : number If the characters in the font set have horizontal spacing between them set the required amount here

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

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

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

customSpacingX : number Adds horizontal spacing between each character of the font, in pixels.

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

characterSpacingY : number If the characters in the font set have vertical spacing between them set the required amount here.

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

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

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

key : string The key of the RenderTexture in the Cache, if stored there. Inherited

2025-01-10 15:47:30