mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 02:08:40 +00:00
Fixed a mistake that would cause fontFamily to hold all font data when using the font shorthand & fixes photonstorm/phaser#4141
I noticed this while investigating photonstorm/phaser#4141
This commit is contained in:
parent
f8e895e1bb
commit
e181a98aa2
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue