Skip to content

Commit

Permalink
Fixed a small mistake that would cause fontFamily to hold the Family,…
Browse files Browse the repository at this point in the history
… Size and Style

I found this while investigating phaserjs#4141
  • Loading branch information
DottieDot committed Nov 22, 2018
1 parent c841adc commit 8ffb65f
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 @@ -534,9 +534,9 @@ var TextStyle = new Class({
{
var fontSplit = font.split(' ');
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 8ffb65f

Please sign in to comment.