Browse Source

Fixed; stripping of quotes from font-family before applying

v1.x
Tj Holowaychuk 14 years ago
parent
commit
24eb4812cd
  1. 2
      lib/context2d.js

2
lib/context2d.js

@ -76,7 +76,7 @@ var parseFont = exports.parseFont = function(str){
font.style = captures[2] || 'normal';
font.size = parseFloat(captures[3]);
font.unit = captures[4];
font.family = captures[5];
font.family = captures[5].replace(/^["']|["']$/g, '');
// TODO: dpi
// TODO: remaining unit conversion

Loading…
Cancel
Save