Skip to content

Commit c14fb4b

Browse files
committed
Updated formatting.
1 parent 635850e commit c14fb4b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/gameobjects/text/TextStyle.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ var TextStyle = new Class({
396396
{
397397
this.setFont(font, false);
398398
}
399+
399400
this._font = [ this.fontStyle, this.fontSize, this.fontFamily ].join(' ').trim();
400401

401402
// Allow for 'fill' to be used in place of 'color'
@@ -533,8 +534,10 @@ var TextStyle = new Class({
533534
else
534535
{
535536
var fontSplit = font.split(' ');
537+
536538
var i = 0;
537-
this.fontStyle = fontSplit.length > 2 ? fontSplit[i++] : '';
539+
540+
this.fontStyle = (fontSplit.length > 2) ? fontSplit[i++] : '';
538541
this.fontSize = fontSplit[i++] || '16px';
539542
this.fontFamily = fontSplit[i++] || 'Courier';
540543
}

0 commit comments

Comments
 (0)