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