@@ -656,7 +656,7 @@ var jsPDF = (function (global) {
656
656
[ 'Times-Bold' , TIMES , BOLD , 'WinAnsiEncoding' ] ,
657
657
[ 'Times-Italic' , TIMES , ITALIC , 'WinAnsiEncoding' ] ,
658
658
[ 'Times-BoldItalic' , TIMES , BOLD_ITALIC , 'WinAnsiEncoding' ] ,
659
- [ 'ZapfDingbats' , ZAPF , undefined , 'StandardEncoding' ]
659
+ [ 'ZapfDingbats' , ZAPF , NORMAL , 'StandardEncoding' ]
660
660
] ;
661
661
662
662
for ( var i = 0 , l = standardFonts . length ; i < l ; i ++ ) {
@@ -1012,35 +1012,10 @@ var jsPDF = (function (global) {
1012
1012
fontName = fontName !== undefined ? fontName : fonts [ activeFontKey ] . fontName ;
1013
1013
fontStyle = fontStyle !== undefined ? fontStyle : fonts [ activeFontKey ] . fontStyle ;
1014
1014
1015
- originalFontName = fontName ;
1016
-
1017
1015
if ( fontName !== undefined ) {
1018
1016
fontName = fontName . toLowerCase ( ) ;
1019
1017
}
1020
1018
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
-
1044
1019
try {
1045
1020
// get a string like 'F3' - the KEY corresponding tot he font + type combination.
1046
1021
key = fontmap [ fontName ] [ fontStyle ] ;
@@ -2882,4 +2857,4 @@ var jsPDF = (function (global) {
2882
2857
} ( typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || Function ( 'return typeof this === "object" && this.content' ) ( ) || Function ( 'return this' ) ( ) ) ) ;
2883
2858
// `self` is undefined in Firefox for Android content script context
2884
2859
// 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