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
Copy file name to clipboardExpand all lines: src/gameobjects/Text.js
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
* @param {boolean} [style.wordWrap=false] - Indicates if word wrap should be used.
36
36
* @param {number} [style.wordWrapWidth=100] - The width in pixels at which text will wrap.
37
37
* @param {number} [style.maxLines=0] - The maximum number of lines to be shown for wrapped text.
38
+
* @param {string} [style.letterSpacing='0px'] - Additional spacing between letters in CSS [length]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/length} units.
38
39
* @param {number|array} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
39
40
* @param {object} [style.fontProperties=null] - `ascent`, `descent`, and `fontSize` lengths for a given style. You can get these from {@link Phaser.Text#determineFontProperties}.
40
41
* @param {string} [style.testString='|MÂÉQfjq_'] - The text to use to measure the font width and height.
@@ -315,6 +316,7 @@ Phaser.Text.prototype.setShadow = function (x, y, color, blur, shadowStroke, sha
315
316
* @param {boolean} [style.wordWrap=false] - Indicates if word wrap should be used.
316
317
* @param {number} [style.wordWrapWidth=100] - The width in pixels at which text will wrap.
317
318
* @param {number} [style.maxLines=0] - The maximum number of lines to be shown for wrapped text.
319
+
* @param {string} [style.letterSpacing='0px'] - Additional spacing between letters in CSS [length]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/length} units.
318
320
* @param {number|array} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
319
321
* @param {object} [style.fontProperties=null] - `ascent`, `descent`, and `fontSize` lengths for a given style. You can get these from {@link Phaser.Text#determineFontProperties}.
320
322
* @param {string} [style.testString='|MÂÉQfjq_'] - The text to use to measure the font width and height.
@@ -337,6 +339,7 @@ Phaser.Text.prototype.setStyle = function (style, update)
0 commit comments