Skip to content

Commit

Permalink
Fixed a mistake that would cause fontFamily to hold all font data whe…
Browse files Browse the repository at this point in the history
…n using the font shorthand & fixes phaserjs#4141

I noticed this while investigating phaserjs#4141
  • Loading branch information
DottieDot committed Nov 22, 2018
1 parent f8e895e commit e181a98
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 e181a98

Please sign in to comment.