This commit is contained in:
Richard Davey 2018-04-13 12:10:13 +01:00
commit f6846199ca

View file

@ -116,6 +116,16 @@ var DynamicBitmapText = new Class({
*/ */
this.fontSize = size || this.fontData.size; this.fontSize = size || this.fontData.size;
/**
* Adds/Removes spacing between characters
* Can be a negative or positive number
*
* @name Phaser.GameObjects.DynamicBitmapText#letterSpacing
* @type {number}
* @since 3.4.1
*/
this.letterSpacing = 0;
this.setTexture(entry.texture, entry.frame); this.setTexture(entry.texture, entry.frame);
this.setPosition(x, y); this.setPosition(x, y);
this.setOrigin(0, 0); this.setOrigin(0, 0);