Browse Source

Misc refactoring of font regexp

v1.x
Tj Holowaychuk 15 years ago
parent
commit
9ac5934d75
  1. 2
      lib/context2d.js

2
lib/context2d.js

@ -36,7 +36,7 @@ var baselines = ['alphabetic', 'top', 'bottom', 'middle', 'ideographic', 'hangin
* Font RegExp helpers.
*/
var weights = 'normal|bold|bolder|lighter|[1-9](?:00)'
var weights = 'normal|bold|bolder|lighter|[1-9]00'
, styles = 'normal|italic|oblique'
, units = 'px|pt|pc|in|cm|mm|%'
, string = '"([^"]+)"|[\\w-]+';

Loading…
Cancel
Save