We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 635850e commit c14fb4bCopy full SHA for c14fb4b
1 file changed
src/gameobjects/text/TextStyle.js
@@ -396,6 +396,7 @@ var TextStyle = new Class({
396
{
397
this.setFont(font, false);
398
}
399
+
400
this._font = [ this.fontStyle, this.fontSize, this.fontFamily ].join(' ').trim();
401
402
// Allow for 'fill' to be used in place of 'color'
@@ -533,8 +534,10 @@ var TextStyle = new Class({
533
534
else
535
536
var fontSplit = font.split(' ');
537
538
var i = 0;
- this.fontStyle = fontSplit.length > 2 ? fontSplit[i++] : '';
539
540
+ this.fontStyle = (fontSplit.length > 2) ? fontSplit[i++] : '';
541
this.fontSize = fontSplit[i++] || '16px';
542
this.fontFamily = fontSplit[i++] || 'Courier';
543
0 commit comments