Skip to content

Commit 751b18e

Browse files
committed
ie8 fix
1 parent e55e062 commit 751b18e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jspdf.plugin.cell.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@
6464

6565
text = document.createElement('font');
6666
text.id = "jsPDFCell";
67-
text.style.fontStyle = fontStyle;
67+
68+
try {
69+
text.style.fontStyle = fontStyle;
70+
} catch(e) {
71+
text.style.fontWeight = fontStyle;
72+
}
73+
6874
text.style.fontName = fontName;
6975
text.style.fontSize = fontSize + 'pt';
7076
text.textContent = txt;

0 commit comments

Comments
 (0)