Fix fontWeight parsing

This commit is contained in:
kangax 2014-04-18 16:07:59 -04:00
parent b3600e62a4
commit 314e06db6d

View file

@ -284,7 +284,7 @@
oStyle.fontStyle = fontStyle;
}
if (fontWeight) {
oStyle.fontSize = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
oStyle.fontWeight = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
}
if (fontSize) {
oStyle.fontSize = parseFloat(fontSize);