mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #3559 from Antriel/dynamic-bitmaptext-fix
Add missing letterSpacing to DynamicBitmapText
This commit is contained in:
commit
237732752f
1 changed files with 10 additions and 0 deletions
|
@ -116,6 +116,16 @@ var DynamicBitmapText = new Class({
|
|||
*/
|
||||
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.setPosition(x, y);
|
||||
this.setOrigin(0, 0);
|
||||
|
|
Loading…
Reference in a new issue