You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Bitmap Font data that can be used by a BitmapText Game Object.
41
+
*
42
+
* @typedef {object} BitmapFontData
43
+
*
44
+
* @property {string} font - The name of the font.
45
+
* @property {number} size - The size of the font.
46
+
* @property {number} lineHeight - The line height of the font.
47
+
* @property {boolean} retroFont - Whether this font is a retro font (monospace).
48
+
* @property {Object.<number, BitmapFontCharacterData>} chars - The character data of the font, keyed by character code. Each character datum includes a position, size, offset and more.
49
+
*/
50
+
51
+
/**
52
+
* Parse an XML font so you can pass it to the BitmapText constructor and create a BitmapText object.
53
+
*
18
54
* @function ParseXMLBitmapFont
19
55
* @since 3.0.0
20
56
* @private
@@ -23,6 +59,8 @@ function getValue (node, attribute)
23
59
* @param {integer} [xSpacing=0] - The x-axis spacing to add between each letter.
24
60
* @param {integer} [ySpacing=0] - The y-axis spacing to add to the line height.
25
61
* @param {Phaser.Textures.Frame} [frame] - The texture frame to take into account while parsing.
62
+
*
63
+
* @return {BitmapFontData} The parsed Bitmap Font data.
0 commit comments