-
Notifications
You must be signed in to change notification settings - Fork 7.1k
/
RetroFontConfig.js
15 lines (15 loc) · 1.24 KB
/
RetroFontConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
* @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.
*/