mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix regular expression in Style#getFontStyle()
This commit is contained in:
parent
c0d11ea98e
commit
dfacc16788
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ var Style = Base.extend(new function() {
|
|||
// something deeper down in the optimizer:
|
||||
// `if (size === 0) size = 0;`
|
||||
return this.getFontWeight()
|
||||
+ ' ' + fontSize + (/\[a-z]/i.test(fontSize + '') ? ' ' : 'px ')
|
||||
+ ' ' + fontSize + (/[a-z]/i.test(fontSize + '') ? ' ' : 'px ')
|
||||
+ this.getFontFamily();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue