Skip to content

Commit

Permalink
Merge pull request #4183 from DottieDot/setFont-fix
Browse files Browse the repository at this point in the history
setFont fix (also fixes #4141)
  • Loading branch information
photonstorm committed Dec 12, 2018
2 parents 79ee222 + e181a98 commit 7ea0316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gameobjects/text/TextStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ var TextStyle = new Class({

var i = 0;

this.fontStyle = (fontSplit.length > 2) ? fontSplit[i++] : '';
this.fontSize = fontSplit[i++] || '16px';
this.fontFamily = fontSplit[i++] || 'Courier';
fontStyle = (fontSplit.length > 2) ? fontSplit[i++] : '';
fontSize = fontSplit[i++] || '16px';
fontFamily = fontSplit[i++] || 'Courier';
}

if (fontFamily !== this.fontFamily || fontSize !== this.fontSize || fontStyle !== this.fontStyle)
Expand Down

0 comments on commit 7ea0316

Please sign in to comment.