UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

16 lines (15 loc) 1.27 kB
/** * @typedef {object} Phaser.Types.GameObjects.BitmapText.RetroFontConfig * @since 3.6.0 * * @property {string} image - The key of the image containing the font. * @property {number} offset.x - If the font set doesn't start at the top left of the given image, specify the X coordinate offset here. * @property {number} offset.y - If the font set doesn't start at the top left of the given image, specify the Y coordinate offset here. * @property {number} width - The width of each character in the font set. * @property {number} height - The height of each character in the font set. * @property {string} chars - The characters used in the font set, in display order. You can use the TEXT_SET consts for common font set arrangements. * @property {number} charsPerRow - The number of characters per row in the font set. If not given charsPerRow will be the image width / characterWidth. * @property {number} spacing.x - If the characters in the font set have horizontal spacing between them set the required amount here. * @property {number} spacing.y - If the characters in the font set have vertical spacing between them set the required amount here. * @property {number} lineSpacing - The amount of vertical space to add to the line height of the font. */