Temporary patch for font-size parsing issue.

This partially addresses #991, but a more complete solution, or better
documentation, is still necessary.
pull/1/head
David Schnur 13 years ago
parent 5741f26756
commit 13c71fa03c

@ -231,7 +231,7 @@ browser, but needs to redraw with canvas text when exporting as an image.
style: element.css("font-style"),
variant: element.css("font-variant"),
weight: element.css("font-weight"),
size: parseInt(element.css("font-size"), 10),
size: parseInt(element.css("font-size"), 10) || 13,
family: element.css("font-family"),
color: element.css("color")
};

Loading…
Cancel
Save