RetroFont#stamp

[readonly] stamp : Phaser.Image The image that is stamped to the RenderTexture for each character in the font. Source code: gameobjects/RetroFont.js (Line 163)

RetroFont#smoothed

smoothed : boolean Sets if the stamp is smoothed or not. Source code: gameobjects/RetroFont.js (Line 585)

RetroFont#setText()

setText(content, multiLine, characterSpacing, lineSpacing, lineAlignment, allowLowerCase) A helper function that quickly sets lots of variables at once, and then updates the text. Parameters Name Type Argument Default Description content string The text of this sprite. multiLine boolean <optional> false Set to true if you want to support carriage-returns in the text and create a multi-line sprite instead of a single line. characterSpacing number <optional> 0 To ad

RetroFont#setFrame()

setFrame(frame) Specifies the region of the baseTexture that this texture will use. Parameters Name Type Description frame Rectangle The frame of the texture to set it to Inherited From PIXI.Texture#setFrame Source code: pixi/textures/Texture.js (Line 178)

RetroFont#setFixedWidth()

setFixedWidth(width, lineAlignment) If you need this RetroFont to have a fixed width and custom alignment you can set the width here.If text is wider than the width specified it will be cropped off. Parameters Name Type Argument Default Description width number Width in pixels of this RetroFont. Set to zero to disable and re-enable automatic resizing. lineAlignment string <optional> 'left' Align the text within this width. Set to RetroFont.ALIGN_LEFT (default), RetroFont.ALI

RetroFont#RetroFont

new RetroFont(game, key, characterWidth, characterHeight, chars, charsPerRow, xSpacing, ySpacing, xOffset, yOffset) A Retro Font is similar to a BitmapFont, in that it uses a texture to render the text. However unlike a BitmapFont every character in a RetroFontis the same size. This makes it similar to a sprite sheet. You typically find font sheets like this from old 8/16-bit games and demos. Parameters Name Type Argument Default Description game Phaser.Game Current game instance. key

RetroFont#resolution

resolution : number The Resolution of the texture. Inherited From PIXI.RenderTexture#resolution Source code: pixi/textures/RenderTexture.js (Line 53)

RetroFont#resize()

resize(width, height, updateBase) Resizes the RenderTexture. Parameters Name Type Description width Number The width to resize to. height Number The height to resize to. updateBase Boolean Should the baseTexture.width and height values be resized as well? Inherited From PIXI.RenderTexture#resize Source code: pixi/textures/RenderTexture.js (Line 139)

RetroFont#requiresUpdate

requiresUpdate : boolean This will let a renderer know that a texture has been updated (used mainly for webGL uv updates) Inherited From PIXI.Texture#requiresUpdate Source code: pixi/textures/Texture.js (Line 87)

RetroFont#requiresReTint

requiresReTint : boolean This will let a renderer know that a tinted parent has updated its texture. Inherited From PIXI.Texture#requiresReTint Source code: pixi/textures/Texture.js (Line 95)