Skip to content

Commit 7ea0316

Browse files
authored
Merge pull request phaserjs#4183 from DottieDot/setFont-fix
setFont fix (also fixes phaserjs#4141)
2 parents 79ee222 + e181a98 commit 7ea0316

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/text/TextStyle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ var TextStyle = new Class({
537537

538538
var i = 0;
539539

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

545545
if (fontFamily !== this.fontFamily || fontSize !== this.fontSize || fontStyle !== this.fontStyle)

0 commit comments

Comments
 (0)