Browse Source

Fixed; stripping of quotes from font-family before applying

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

4
lib/context2d.js

@ -76,8 +76,8 @@ 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
switch (font.unit) {

Loading…
Cancel
Save