From 24eb4812cdc51f5328f7a9d0da4726478ecfa6fb Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 11 Jan 2011 08:41:18 -0800 Subject: [PATCH] Fixed; stripping of quotes from font-family before applying --- lib/context2d.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {