UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.

20 lines (19 loc) 908 B
/** * The font data for an individual character of a Bitmap Font. * * Describes the character's position, size, offset and kerning. * * @typedef {object} Phaser.Types.GameObjects.BitmapText.BitmapFontCharacterData * @since 3.0.0 * * @property {number} x - The x position of the character. * @property {number} y - The y position of the character. * @property {number} width - The width of the character. * @property {number} height - The height of the character. * @property {number} centerX - The center x position of the character. * @property {number} centerY - The center y position of the character. * @property {number} xOffset - The x offset of the character. * @property {number} yOffset - The y offset of the character. * @property {object} data - Extra data for the character. * @property {Object.<number>} kerning - Kerning values, keyed by character code. */