Skip to content

Commit b229223

Browse files
authored
Update jspdf.js
1 parent 1fcdd15 commit b229223

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

jspdf.js

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ var jsPDF = (function (global) {
656656
['Times-Bold', TIMES, BOLD, 'WinAnsiEncoding'],
657657
['Times-Italic', TIMES, ITALIC, 'WinAnsiEncoding'],
658658
['Times-BoldItalic', TIMES, BOLD_ITALIC, 'WinAnsiEncoding'],
659-
['ZapfDingbats', ZAPF, undefined, 'StandardEncoding']
659+
['ZapfDingbats', ZAPF, NORMAL, 'StandardEncoding']
660660
];
661661

662662
for (var i = 0, l = standardFonts.length; i < l; i++) {
@@ -1012,35 +1012,10 @@ var jsPDF = (function (global) {
10121012
fontName = fontName !== undefined ? fontName : fonts[activeFontKey].fontName;
10131013
fontStyle = fontStyle !== undefined ? fontStyle : fonts[activeFontKey].fontStyle;
10141014

1015-
originalFontName = fontName;
1016-
10171015
if (fontName !== undefined) {
10181016
fontName = fontName.toLowerCase();
10191017
}
10201018

1021-
switch (fontName) {
1022-
case 'sans-serif':
1023-
case 'verdana':
1024-
case 'arial':
1025-
case 'helvetica':
1026-
fontName = 'helvetica';
1027-
break;
1028-
case 'fixed':
1029-
case 'monospace':
1030-
case 'terminal':
1031-
case 'courier':
1032-
fontName = 'courier';
1033-
break;
1034-
case 'serif':
1035-
case 'cursive':
1036-
case 'fantasy':
1037-
fontName = 'times';
1038-
break;
1039-
default:
1040-
fontName = originalFontName;
1041-
break;
1042-
}
1043-
10441019
try {
10451020
// get a string like 'F3' - the KEY corresponding tot he font + type combination.
10461021
key = fontmap[fontName][fontStyle];
@@ -2882,4 +2857,4 @@ var jsPDF = (function (global) {
28822857
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || Function('return typeof this === "object" && this.content')() || Function('return this')()));
28832858
// `self` is undefined in Firefox for Android content script context
28842859
// while `this` is nsIContentFrameMessageManager
2885-
// with an attribute `content` that corresponds to the window
2860+
// with an attribute `content` that corresponds to the window

0 commit comments

Comments
 (0)