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
* If the textureURL isn't specified then the Loader will take the key and create a filename from that.
1280
1280
* For example if the key is "megaFont" and textureURL is null then the Loader will set the URL to be "megaFont.png".
1281
-
* The same is true for the xmlURL. If xmlURL isn't specified and no xmlData has been provided then the Loader will
1282
-
* set the xmlURL to be the key. For example if the key is "megaFont" the xmlURL will be set to "megaFont.xml".
1281
+
* The same is true for the atlasURL. If atlasURL isn't specified and no atlasData has been provided then the Loader will
1282
+
* set the atlasURL to be the key. For example if the key is "megaFont" the atlasURL will be set to "megaFont.xml".
1283
1283
*
1284
1284
* If you do not desire this action then provide URLs and / or a data object.
1285
1285
*
1286
1286
* @method Phaser.Loader#bitmapFont
1287
1287
* @param {string} key - Unique asset key of the bitmap font.
1288
1288
* @param {string} textureURL - URL of the Bitmap Font texture file. If undefined or `null` the url will be set to `<key>.png`, i.e. if `key` was "megaFont" then the URL will be "megaFont.png".
1289
-
* @param {string} atlasURL - URL of the Bitmap Font atlas file (xml/json).
1289
+
* @param {string} atlasURL - URL of the Bitmap Font atlas file (xml/json). If undefined or `null` AND `atlasData` is null, the url will be set to `<key>.xml`, i.e. if `key` was "megaFont" then the URL will be "megaFont.xml".
1290
1290
* @param {object} atlasData - An optional Bitmap Font atlas in string form (stringified xml/json).
1291
1291
* @param {number} [xSpacing=0] - If you'd like to add additional horizontal spacing between the characters then set the pixel value here.
1292
1292
* @param {number} [ySpacing=0] - If you'd like to add additional vertical spacing between the lines then set the pixel value here.
0 commit comments