diff --git a/lib/context2d.js b/lib/context2d.js index cc9f80b..deec366 100644 --- a/lib/context2d.js +++ b/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) {