Skip to content

Commit 6d4dad7

Browse files
committed
Apply default X/Y-Spacing
Applies default X/Y-Spacing when omitted as a parameter
1 parent 33503e7 commit 6d4dad7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/loader/Cache.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,10 @@ Phaser.Cache.prototype = {
451451
font: null,
452452
base: new PIXI.BaseTexture(data)
453453
};
454-
454+
455+
if (xSpacing === undefined) { xSpacing = 0; }
456+
if (ySpacing === undefined) { ySpacing = 0; }
457+
455458
if (atlasType === 'json')
456459
{
457460
obj.font = Phaser.LoaderParser.jsonBitmapFont(atlasData, obj.base, xSpacing, ySpacing);

0 commit comments

Comments
 (0)