name | type | description |
---|---|---|
image | string |
The key of the image containing the font. |
offset.x | number |
If the font set doesn't start at the top left of the given image, specify the X coordinate offset here. |
offset.y | number |
If the font set doesn't start at the top left of the given image, specify the Y coordinate offset here. |
width | number |
The width of each character in the font set. |
height | number |
The height of each character in the font set. |
chars | string |
The characters used in the font set, in display order. You can use the TEXT_SET consts for common font set arrangements. |
charsPerRow | number |
The number of characters per row in the font set. If not given charsPerRow will be the image width / characterWidth. |
spacing.x | number |
If the characters in the font set have horizontal spacing between them set the required amount here. |
spacing.y | number |
If the characters in the font set have vertical spacing between them set the required amount here. |
lineSpacing | number |
The amount of vertical space to add to the line height of the font. |