pdfjs-dist 2.1.266 → 2.5.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pdfjs-dist might be problematic. Click here for more details.

Files changed (191) hide show
  1. package/CODE_OF_CONDUCT.md +15 -0
  2. package/README.md +4 -0
  3. package/bower.json +1 -1
  4. package/build/pdf.js +8382 -18492
  5. package/build/pdf.js.map +1 -1
  6. package/build/pdf.min.js +22 -1
  7. package/build/pdf.worker.entry.js +5 -3
  8. package/build/pdf.worker.js +20417 -29816
  9. package/build/pdf.worker.js.map +1 -1
  10. package/build/pdf.worker.min.js +22 -1
  11. package/es5/build/pdf.js +25688 -0
  12. package/es5/build/pdf.js.map +1 -0
  13. package/{lib/shared/global_scope.js → es5/build/pdf.worker.entry.js} +5 -10
  14. package/es5/build/pdf.worker.js +58239 -0
  15. package/es5/build/pdf.worker.js.map +1 -0
  16. package/es5/web/images/annotation-check.svg +11 -0
  17. package/es5/web/images/annotation-comment.svg +16 -0
  18. package/es5/web/images/annotation-help.svg +26 -0
  19. package/es5/web/images/annotation-insert.svg +10 -0
  20. package/es5/web/images/annotation-key.svg +11 -0
  21. package/es5/web/images/annotation-newparagraph.svg +11 -0
  22. package/es5/web/images/annotation-noicon.svg +7 -0
  23. package/es5/web/images/annotation-note.svg +42 -0
  24. package/es5/web/images/annotation-paragraph.svg +16 -0
  25. package/es5/web/images/loading-icon.gif +0 -0
  26. package/es5/web/images/shadow.png +0 -0
  27. package/es5/web/images/texture.png +0 -0
  28. package/es5/web/pdf_viewer.css +403 -0
  29. package/es5/web/pdf_viewer.js +7742 -0
  30. package/es5/web/pdf_viewer.js.map +1 -0
  31. package/image_decoders/pdf.image_decoders.js +1475 -4897
  32. package/image_decoders/pdf.image_decoders.js.map +1 -1
  33. package/image_decoders/pdf.image_decoders.min.js +22 -1
  34. package/lib/README.md +7 -0
  35. package/lib/core/annotation.js +750 -899
  36. package/lib/core/arithmetic_decoder.js +81 -97
  37. package/lib/core/bidi.js +54 -46
  38. package/lib/core/ccitt.js +88 -81
  39. package/lib/core/ccitt_stream.js +15 -14
  40. package/lib/core/cff_parser.js +235 -183
  41. package/lib/core/charsets.js +4 -4
  42. package/lib/core/chunked_stream.js +447 -542
  43. package/lib/core/cmap.js +222 -264
  44. package/lib/core/colorspace.js +699 -863
  45. package/lib/core/core_utils.js +152 -0
  46. package/lib/core/crypto.js +379 -437
  47. package/lib/core/document.js +573 -660
  48. package/lib/core/encodings.js +15 -15
  49. package/lib/core/evaluator.js +1103 -868
  50. package/lib/core/font_renderer.js +135 -178
  51. package/lib/core/fonts.js +570 -491
  52. package/lib/core/function.js +291 -288
  53. package/lib/core/glyphlist.js +4527 -4526
  54. package/lib/core/image.js +145 -149
  55. package/lib/core/image_utils.js +170 -0
  56. package/lib/core/jbig2.js +325 -316
  57. package/lib/core/jbig2_stream.js +18 -17
  58. package/lib/core/jpeg_stream.js +21 -26
  59. package/lib/core/jpg.js +284 -232
  60. package/lib/core/jpx.js +161 -143
  61. package/lib/core/jpx_stream.js +28 -28
  62. package/lib/core/metrics.js +2929 -2929
  63. package/lib/core/murmurhash3.js +90 -101
  64. package/lib/core/obj.js +1183 -1157
  65. package/lib/core/operator_list.js +99 -67
  66. package/lib/core/parser.js +972 -911
  67. package/lib/core/pattern.js +87 -70
  68. package/lib/core/pdf_manager.js +150 -315
  69. package/lib/core/primitives.js +83 -56
  70. package/lib/core/ps_parser.js +175 -214
  71. package/lib/core/standard_fonts.js +237 -236
  72. package/lib/core/stream.js +94 -74
  73. package/lib/core/type1_parser.js +87 -69
  74. package/lib/core/unicode.js +1654 -1654
  75. package/lib/core/worker.js +193 -390
  76. package/lib/core/worker_stream.js +168 -0
  77. package/lib/display/annotation_layer.js +741 -972
  78. package/lib/display/api.js +1500 -1791
  79. package/lib/display/api_compatibility.js +12 -17
  80. package/lib/display/canvas.js +165 -165
  81. package/lib/display/content_disposition.js +40 -59
  82. package/lib/display/display_utils.js +515 -0
  83. package/lib/display/fetch_stream.js +183 -298
  84. package/lib/display/font_loader.js +273 -413
  85. package/lib/display/metadata.js +86 -98
  86. package/lib/display/network.js +266 -359
  87. package/lib/display/network_utils.js +25 -18
  88. package/lib/display/node_stream.js +285 -458
  89. package/lib/display/pattern_helper.js +113 -65
  90. package/lib/display/svg.js +1166 -901
  91. package/lib/display/text_layer.js +156 -132
  92. package/lib/display/transport_stream.js +262 -278
  93. package/lib/display/webgl.js +70 -83
  94. package/lib/display/worker_options.js +3 -3
  95. package/lib/display/xml_parser.js +303 -392
  96. package/lib/examples/node/domstubs.js +40 -37
  97. package/lib/pdf.js +226 -59
  98. package/lib/pdf.worker.js +14 -6
  99. package/lib/shared/compatibility.js +3 -246
  100. package/lib/shared/is_node.js +7 -6
  101. package/lib/shared/message_handler.js +327 -332
  102. package/lib/shared/util.js +266 -416
  103. package/lib/test/unit/annotation_spec.js +1555 -701
  104. package/lib/test/unit/api_spec.js +802 -604
  105. package/lib/test/unit/bidi_spec.js +7 -7
  106. package/lib/test/unit/cff_parser_spec.js +84 -69
  107. package/lib/test/unit/clitests_helper.js +7 -9
  108. package/lib/test/unit/cmap_spec.js +74 -76
  109. package/lib/test/unit/colorspace_spec.js +166 -161
  110. package/lib/test/unit/core_utils_spec.js +211 -0
  111. package/lib/test/unit/crypto_spec.js +181 -181
  112. package/lib/test/unit/custom_spec.js +20 -22
  113. package/lib/test/unit/display_svg_spec.js +34 -39
  114. package/lib/test/unit/display_utils_spec.js +263 -0
  115. package/lib/test/unit/document_spec.js +16 -21
  116. package/lib/test/unit/encodings_spec.js +12 -34
  117. package/lib/test/unit/evaluator_spec.js +83 -83
  118. package/lib/test/unit/fetch_stream_spec.js +111 -0
  119. package/lib/test/unit/function_spec.js +206 -204
  120. package/lib/test/unit/jasmine-boot.js +46 -30
  121. package/lib/test/unit/message_handler_spec.js +173 -159
  122. package/lib/test/unit/metadata_spec.js +69 -69
  123. package/lib/test/unit/murmurhash3_spec.js +12 -12
  124. package/lib/test/unit/network_spec.js +13 -61
  125. package/lib/test/unit/network_utils_spec.js +183 -119
  126. package/lib/test/unit/node_stream_spec.js +78 -92
  127. package/lib/test/unit/parser_spec.js +172 -114
  128. package/lib/test/unit/pdf_find_controller_spec.js +55 -86
  129. package/lib/test/unit/pdf_find_utils_spec.js +32 -32
  130. package/lib/test/unit/pdf_history_spec.js +32 -32
  131. package/lib/test/unit/primitives_spec.js +140 -125
  132. package/lib/test/unit/stream_spec.js +16 -14
  133. package/lib/test/unit/test_utils.js +131 -143
  134. package/lib/test/unit/testreporter.js +19 -19
  135. package/lib/test/unit/type1_parser_spec.js +42 -42
  136. package/lib/test/unit/ui_utils_spec.js +297 -459
  137. package/lib/test/unit/unicode_spec.js +38 -38
  138. package/lib/test/unit/util_spec.js +121 -305
  139. package/lib/web/annotation_layer_builder.js +66 -103
  140. package/lib/web/app.js +1328 -1214
  141. package/lib/web/app_options.js +105 -107
  142. package/lib/web/base_viewer.js +824 -838
  143. package/lib/web/chromecom.js +165 -252
  144. package/lib/web/debugger.js +149 -205
  145. package/lib/web/download_manager.js +39 -55
  146. package/lib/web/firefox_print_service.js +37 -27
  147. package/lib/web/firefoxcom.js +212 -363
  148. package/lib/web/genericcom.js +26 -108
  149. package/lib/web/genericl10n.js +24 -153
  150. package/lib/web/grab_to_pan.js +32 -30
  151. package/lib/web/interfaces.js +80 -254
  152. package/lib/web/overlay_manager.js +70 -246
  153. package/lib/web/password_prompt.js +38 -64
  154. package/lib/web/pdf_attachment_viewer.js +113 -131
  155. package/lib/web/pdf_cursor_tools.js +75 -102
  156. package/lib/web/pdf_document_properties.js +221 -306
  157. package/lib/web/pdf_find_bar.js +136 -170
  158. package/lib/web/pdf_find_controller.js +491 -548
  159. package/lib/web/pdf_find_utils.js +13 -13
  160. package/lib/web/pdf_history.js +397 -406
  161. package/lib/web/pdf_link_service.js +304 -348
  162. package/lib/web/pdf_outline_viewer.js +140 -175
  163. package/lib/web/pdf_page_view.js +452 -523
  164. package/lib/web/pdf_presentation_mode.js +308 -357
  165. package/lib/web/pdf_print_service.js +90 -104
  166. package/lib/web/pdf_rendering_queue.js +84 -108
  167. package/lib/web/pdf_sidebar.js +276 -306
  168. package/lib/web/pdf_sidebar_resizer.js +92 -119
  169. package/lib/web/pdf_single_page_viewer.js +77 -126
  170. package/lib/web/pdf_thumbnail_view.js +276 -297
  171. package/lib/web/pdf_thumbnail_viewer.js +186 -206
  172. package/lib/web/pdf_viewer.component.js +20 -21
  173. package/lib/web/pdf_viewer.js +55 -115
  174. package/lib/web/preferences.js +82 -286
  175. package/lib/web/secondary_toolbar.js +164 -196
  176. package/lib/web/text_layer_builder.js +282 -339
  177. package/lib/web/toolbar.js +217 -210
  178. package/lib/web/ui_utils.js +267 -420
  179. package/lib/web/view_history.js +52 -226
  180. package/lib/web/viewer_compatibility.js +21 -6
  181. package/package.json +2 -9
  182. package/web/pdf_viewer.css +35 -25
  183. package/web/pdf_viewer.js +3489 -4855
  184. package/web/pdf_viewer.js.map +1 -1
  185. package/webpack.js +14 -5
  186. package/external/streams/streams-lib.js +0 -3962
  187. package/external/url/url-lib.js +0 -627
  188. package/lib/display/dom_utils.js +0 -494
  189. package/lib/shared/streams_polyfill.js +0 -43
  190. package/lib/shared/url_polyfill.js +0 -56
  191. package/lib/test/unit/dom_utils_spec.js +0 -89
@@ -2,7 +2,7 @@
2
2
  * @licstart The following is the entire license notice for the
3
3
  * Javascript code in this page
4
4
  *
5
- * Copyright 2018 Mozilla Foundation
5
+ * Copyright 2020 Mozilla Foundation
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -26,248 +26,249 @@ Object.defineProperty(exports, "__esModule", {
26
26
  });
27
27
  exports.getSupplementalGlyphMapForCalibri = exports.getSupplementalGlyphMapForArialBlack = exports.getGlyphMapForStandardFonts = exports.getSymbolsFonts = exports.getSerifFonts = exports.getNonStdFontMap = exports.getStdFontMap = void 0;
28
28
 
29
- var _util = require("../shared/util");
29
+ var _core_utils = require("./core_utils.js");
30
30
 
31
- var getStdFontMap = (0, _util.getLookupTableFactory)(function (t) {
32
- t['ArialNarrow'] = 'Helvetica';
33
- t['ArialNarrow-Bold'] = 'Helvetica-Bold';
34
- t['ArialNarrow-BoldItalic'] = 'Helvetica-BoldOblique';
35
- t['ArialNarrow-Italic'] = 'Helvetica-Oblique';
36
- t['ArialBlack'] = 'Helvetica';
37
- t['ArialBlack-Bold'] = 'Helvetica-Bold';
38
- t['ArialBlack-BoldItalic'] = 'Helvetica-BoldOblique';
39
- t['ArialBlack-Italic'] = 'Helvetica-Oblique';
40
- t['Arial-Black'] = 'Helvetica';
41
- t['Arial-Black-Bold'] = 'Helvetica-Bold';
42
- t['Arial-Black-BoldItalic'] = 'Helvetica-BoldOblique';
43
- t['Arial-Black-Italic'] = 'Helvetica-Oblique';
44
- t['Arial'] = 'Helvetica';
45
- t['Arial-Bold'] = 'Helvetica-Bold';
46
- t['Arial-BoldItalic'] = 'Helvetica-BoldOblique';
47
- t['Arial-Italic'] = 'Helvetica-Oblique';
48
- t['Arial-BoldItalicMT'] = 'Helvetica-BoldOblique';
49
- t['Arial-BoldMT'] = 'Helvetica-Bold';
50
- t['Arial-ItalicMT'] = 'Helvetica-Oblique';
51
- t['ArialMT'] = 'Helvetica';
52
- t['Courier-Bold'] = 'Courier-Bold';
53
- t['Courier-BoldItalic'] = 'Courier-BoldOblique';
54
- t['Courier-Italic'] = 'Courier-Oblique';
55
- t['CourierNew'] = 'Courier';
56
- t['CourierNew-Bold'] = 'Courier-Bold';
57
- t['CourierNew-BoldItalic'] = 'Courier-BoldOblique';
58
- t['CourierNew-Italic'] = 'Courier-Oblique';
59
- t['CourierNewPS-BoldItalicMT'] = 'Courier-BoldOblique';
60
- t['CourierNewPS-BoldMT'] = 'Courier-Bold';
61
- t['CourierNewPS-ItalicMT'] = 'Courier-Oblique';
62
- t['CourierNewPSMT'] = 'Courier';
63
- t['Helvetica'] = 'Helvetica';
64
- t['Helvetica-Bold'] = 'Helvetica-Bold';
65
- t['Helvetica-BoldItalic'] = 'Helvetica-BoldOblique';
66
- t['Helvetica-BoldOblique'] = 'Helvetica-BoldOblique';
67
- t['Helvetica-Italic'] = 'Helvetica-Oblique';
68
- t['Helvetica-Oblique'] = 'Helvetica-Oblique';
69
- t['SegoeUISymbol'] = 'Helvetica';
70
- t['Symbol-Bold'] = 'Symbol';
71
- t['Symbol-BoldItalic'] = 'Symbol';
72
- t['Symbol-Italic'] = 'Symbol';
73
- t['TimesNewRoman'] = 'Times-Roman';
74
- t['TimesNewRoman-Bold'] = 'Times-Bold';
75
- t['TimesNewRoman-BoldItalic'] = 'Times-BoldItalic';
76
- t['TimesNewRoman-Italic'] = 'Times-Italic';
77
- t['TimesNewRomanPS'] = 'Times-Roman';
78
- t['TimesNewRomanPS-Bold'] = 'Times-Bold';
79
- t['TimesNewRomanPS-BoldItalic'] = 'Times-BoldItalic';
80
- t['TimesNewRomanPS-BoldItalicMT'] = 'Times-BoldItalic';
81
- t['TimesNewRomanPS-BoldMT'] = 'Times-Bold';
82
- t['TimesNewRomanPS-Italic'] = 'Times-Italic';
83
- t['TimesNewRomanPS-ItalicMT'] = 'Times-Italic';
84
- t['TimesNewRomanPSMT'] = 'Times-Roman';
85
- t['TimesNewRomanPSMT-Bold'] = 'Times-Bold';
86
- t['TimesNewRomanPSMT-BoldItalic'] = 'Times-BoldItalic';
87
- t['TimesNewRomanPSMT-Italic'] = 'Times-Italic';
31
+ const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
32
+ t.ArialNarrow = "Helvetica";
33
+ t["ArialNarrow-Bold"] = "Helvetica-Bold";
34
+ t["ArialNarrow-BoldItalic"] = "Helvetica-BoldOblique";
35
+ t["ArialNarrow-Italic"] = "Helvetica-Oblique";
36
+ t.ArialBlack = "Helvetica";
37
+ t["ArialBlack-Bold"] = "Helvetica-Bold";
38
+ t["ArialBlack-BoldItalic"] = "Helvetica-BoldOblique";
39
+ t["ArialBlack-Italic"] = "Helvetica-Oblique";
40
+ t["Arial-Black"] = "Helvetica";
41
+ t["Arial-Black-Bold"] = "Helvetica-Bold";
42
+ t["Arial-Black-BoldItalic"] = "Helvetica-BoldOblique";
43
+ t["Arial-Black-Italic"] = "Helvetica-Oblique";
44
+ t.Arial = "Helvetica";
45
+ t["Arial-Bold"] = "Helvetica-Bold";
46
+ t["Arial-BoldItalic"] = "Helvetica-BoldOblique";
47
+ t["Arial-Italic"] = "Helvetica-Oblique";
48
+ t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
49
+ t["Arial-BoldMT"] = "Helvetica-Bold";
50
+ t["Arial-ItalicMT"] = "Helvetica-Oblique";
51
+ t.ArialMT = "Helvetica";
52
+ t["Courier-Bold"] = "Courier-Bold";
53
+ t["Courier-BoldItalic"] = "Courier-BoldOblique";
54
+ t["Courier-Italic"] = "Courier-Oblique";
55
+ t.CourierNew = "Courier";
56
+ t["CourierNew-Bold"] = "Courier-Bold";
57
+ t["CourierNew-BoldItalic"] = "Courier-BoldOblique";
58
+ t["CourierNew-Italic"] = "Courier-Oblique";
59
+ t["CourierNewPS-BoldItalicMT"] = "Courier-BoldOblique";
60
+ t["CourierNewPS-BoldMT"] = "Courier-Bold";
61
+ t["CourierNewPS-ItalicMT"] = "Courier-Oblique";
62
+ t.CourierNewPSMT = "Courier";
63
+ t.Helvetica = "Helvetica";
64
+ t["Helvetica-Bold"] = "Helvetica-Bold";
65
+ t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique";
66
+ t["Helvetica-BoldOblique"] = "Helvetica-BoldOblique";
67
+ t["Helvetica-Italic"] = "Helvetica-Oblique";
68
+ t["Helvetica-Oblique"] = "Helvetica-Oblique";
69
+ t["Symbol-Bold"] = "Symbol";
70
+ t["Symbol-BoldItalic"] = "Symbol";
71
+ t["Symbol-Italic"] = "Symbol";
72
+ t.TimesNewRoman = "Times-Roman";
73
+ t["TimesNewRoman-Bold"] = "Times-Bold";
74
+ t["TimesNewRoman-BoldItalic"] = "Times-BoldItalic";
75
+ t["TimesNewRoman-Italic"] = "Times-Italic";
76
+ t.TimesNewRomanPS = "Times-Roman";
77
+ t["TimesNewRomanPS-Bold"] = "Times-Bold";
78
+ t["TimesNewRomanPS-BoldItalic"] = "Times-BoldItalic";
79
+ t["TimesNewRomanPS-BoldItalicMT"] = "Times-BoldItalic";
80
+ t["TimesNewRomanPS-BoldMT"] = "Times-Bold";
81
+ t["TimesNewRomanPS-Italic"] = "Times-Italic";
82
+ t["TimesNewRomanPS-ItalicMT"] = "Times-Italic";
83
+ t.TimesNewRomanPSMT = "Times-Roman";
84
+ t["TimesNewRomanPSMT-Bold"] = "Times-Bold";
85
+ t["TimesNewRomanPSMT-BoldItalic"] = "Times-BoldItalic";
86
+ t["TimesNewRomanPSMT-Italic"] = "Times-Italic";
88
87
  });
89
88
  exports.getStdFontMap = getStdFontMap;
90
- var getNonStdFontMap = (0, _util.getLookupTableFactory)(function (t) {
91
- t['Calibri'] = 'Helvetica';
92
- t['Calibri-Bold'] = 'Helvetica-Bold';
93
- t['Calibri-BoldItalic'] = 'Helvetica-BoldOblique';
94
- t['Calibri-Italic'] = 'Helvetica-Oblique';
95
- t['CenturyGothic'] = 'Helvetica';
96
- t['CenturyGothic-Bold'] = 'Helvetica-Bold';
97
- t['CenturyGothic-BoldItalic'] = 'Helvetica-BoldOblique';
98
- t['CenturyGothic-Italic'] = 'Helvetica-Oblique';
99
- t['ComicSansMS'] = 'Comic Sans MS';
100
- t['ComicSansMS-Bold'] = 'Comic Sans MS-Bold';
101
- t['ComicSansMS-BoldItalic'] = 'Comic Sans MS-BoldItalic';
102
- t['ComicSansMS-Italic'] = 'Comic Sans MS-Italic';
103
- t['LucidaConsole'] = 'Courier';
104
- t['LucidaConsole-Bold'] = 'Courier-Bold';
105
- t['LucidaConsole-BoldItalic'] = 'Courier-BoldOblique';
106
- t['LucidaConsole-Italic'] = 'Courier-Oblique';
107
- t['LucidaSans-Demi'] = 'Helvetica-Bold';
108
- t['MS-Gothic'] = 'MS Gothic';
109
- t['MS-Gothic-Bold'] = 'MS Gothic-Bold';
110
- t['MS-Gothic-BoldItalic'] = 'MS Gothic-BoldItalic';
111
- t['MS-Gothic-Italic'] = 'MS Gothic-Italic';
112
- t['MS-Mincho'] = 'MS Mincho';
113
- t['MS-Mincho-Bold'] = 'MS Mincho-Bold';
114
- t['MS-Mincho-BoldItalic'] = 'MS Mincho-BoldItalic';
115
- t['MS-Mincho-Italic'] = 'MS Mincho-Italic';
116
- t['MS-PGothic'] = 'MS PGothic';
117
- t['MS-PGothic-Bold'] = 'MS PGothic-Bold';
118
- t['MS-PGothic-BoldItalic'] = 'MS PGothic-BoldItalic';
119
- t['MS-PGothic-Italic'] = 'MS PGothic-Italic';
120
- t['MS-PMincho'] = 'MS PMincho';
121
- t['MS-PMincho-Bold'] = 'MS PMincho-Bold';
122
- t['MS-PMincho-BoldItalic'] = 'MS PMincho-BoldItalic';
123
- t['MS-PMincho-Italic'] = 'MS PMincho-Italic';
124
- t['NuptialScript'] = 'Times-Italic';
125
- t['Wingdings'] = 'ZapfDingbats';
89
+ const getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
90
+ t.Calibri = "Helvetica";
91
+ t["Calibri-Bold"] = "Helvetica-Bold";
92
+ t["Calibri-BoldItalic"] = "Helvetica-BoldOblique";
93
+ t["Calibri-Italic"] = "Helvetica-Oblique";
94
+ t.CenturyGothic = "Helvetica";
95
+ t["CenturyGothic-Bold"] = "Helvetica-Bold";
96
+ t["CenturyGothic-BoldItalic"] = "Helvetica-BoldOblique";
97
+ t["CenturyGothic-Italic"] = "Helvetica-Oblique";
98
+ t.ComicSansMS = "Comic Sans MS";
99
+ t["ComicSansMS-Bold"] = "Comic Sans MS-Bold";
100
+ t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic";
101
+ t["ComicSansMS-Italic"] = "Comic Sans MS-Italic";
102
+ t.LucidaConsole = "Courier";
103
+ t["LucidaConsole-Bold"] = "Courier-Bold";
104
+ t["LucidaConsole-BoldItalic"] = "Courier-BoldOblique";
105
+ t["LucidaConsole-Italic"] = "Courier-Oblique";
106
+ t["LucidaSans-Demi"] = "Helvetica-Bold";
107
+ t["MS-Gothic"] = "MS Gothic";
108
+ t["MS-Gothic-Bold"] = "MS Gothic-Bold";
109
+ t["MS-Gothic-BoldItalic"] = "MS Gothic-BoldItalic";
110
+ t["MS-Gothic-Italic"] = "MS Gothic-Italic";
111
+ t["MS-Mincho"] = "MS Mincho";
112
+ t["MS-Mincho-Bold"] = "MS Mincho-Bold";
113
+ t["MS-Mincho-BoldItalic"] = "MS Mincho-BoldItalic";
114
+ t["MS-Mincho-Italic"] = "MS Mincho-Italic";
115
+ t["MS-PGothic"] = "MS PGothic";
116
+ t["MS-PGothic-Bold"] = "MS PGothic-Bold";
117
+ t["MS-PGothic-BoldItalic"] = "MS PGothic-BoldItalic";
118
+ t["MS-PGothic-Italic"] = "MS PGothic-Italic";
119
+ t["MS-PMincho"] = "MS PMincho";
120
+ t["MS-PMincho-Bold"] = "MS PMincho-Bold";
121
+ t["MS-PMincho-BoldItalic"] = "MS PMincho-BoldItalic";
122
+ t["MS-PMincho-Italic"] = "MS PMincho-Italic";
123
+ t.NuptialScript = "Times-Italic";
124
+ t.SegoeUISymbol = "Helvetica";
125
+ t.Wingdings = "ZapfDingbats";
126
+ t["Wingdings-Regular"] = "ZapfDingbats";
126
127
  });
127
128
  exports.getNonStdFontMap = getNonStdFontMap;
128
- var getSerifFonts = (0, _util.getLookupTableFactory)(function (t) {
129
- t['Adobe Jenson'] = true;
130
- t['Adobe Text'] = true;
131
- t['Albertus'] = true;
132
- t['Aldus'] = true;
133
- t['Alexandria'] = true;
134
- t['Algerian'] = true;
135
- t['American Typewriter'] = true;
136
- t['Antiqua'] = true;
137
- t['Apex'] = true;
138
- t['Arno'] = true;
139
- t['Aster'] = true;
140
- t['Aurora'] = true;
141
- t['Baskerville'] = true;
142
- t['Bell'] = true;
143
- t['Bembo'] = true;
144
- t['Bembo Schoolbook'] = true;
145
- t['Benguiat'] = true;
146
- t['Berkeley Old Style'] = true;
147
- t['Bernhard Modern'] = true;
148
- t['Berthold City'] = true;
149
- t['Bodoni'] = true;
150
- t['Bauer Bodoni'] = true;
151
- t['Book Antiqua'] = true;
152
- t['Bookman'] = true;
153
- t['Bordeaux Roman'] = true;
154
- t['Californian FB'] = true;
155
- t['Calisto'] = true;
156
- t['Calvert'] = true;
157
- t['Capitals'] = true;
158
- t['Cambria'] = true;
159
- t['Cartier'] = true;
160
- t['Caslon'] = true;
161
- t['Catull'] = true;
162
- t['Centaur'] = true;
163
- t['Century Old Style'] = true;
164
- t['Century Schoolbook'] = true;
165
- t['Chaparral'] = true;
166
- t['Charis SIL'] = true;
167
- t['Cheltenham'] = true;
168
- t['Cholla Slab'] = true;
169
- t['Clarendon'] = true;
170
- t['Clearface'] = true;
171
- t['Cochin'] = true;
172
- t['Colonna'] = true;
173
- t['Computer Modern'] = true;
174
- t['Concrete Roman'] = true;
175
- t['Constantia'] = true;
176
- t['Cooper Black'] = true;
177
- t['Corona'] = true;
178
- t['Ecotype'] = true;
179
- t['Egyptienne'] = true;
180
- t['Elephant'] = true;
181
- t['Excelsior'] = true;
182
- t['Fairfield'] = true;
183
- t['FF Scala'] = true;
184
- t['Folkard'] = true;
185
- t['Footlight'] = true;
186
- t['FreeSerif'] = true;
187
- t['Friz Quadrata'] = true;
188
- t['Garamond'] = true;
189
- t['Gentium'] = true;
190
- t['Georgia'] = true;
191
- t['Gloucester'] = true;
192
- t['Goudy Old Style'] = true;
193
- t['Goudy Schoolbook'] = true;
194
- t['Goudy Pro Font'] = true;
195
- t['Granjon'] = true;
196
- t['Guardian Egyptian'] = true;
197
- t['Heather'] = true;
198
- t['Hercules'] = true;
199
- t['High Tower Text'] = true;
200
- t['Hiroshige'] = true;
201
- t['Hoefler Text'] = true;
202
- t['Humana Serif'] = true;
203
- t['Imprint'] = true;
204
- t['Ionic No. 5'] = true;
205
- t['Janson'] = true;
206
- t['Joanna'] = true;
207
- t['Korinna'] = true;
208
- t['Lexicon'] = true;
209
- t['Liberation Serif'] = true;
210
- t['Linux Libertine'] = true;
211
- t['Literaturnaya'] = true;
212
- t['Lucida'] = true;
213
- t['Lucida Bright'] = true;
214
- t['Melior'] = true;
215
- t['Memphis'] = true;
216
- t['Miller'] = true;
217
- t['Minion'] = true;
218
- t['Modern'] = true;
219
- t['Mona Lisa'] = true;
220
- t['Mrs Eaves'] = true;
221
- t['MS Serif'] = true;
222
- t['Museo Slab'] = true;
223
- t['New York'] = true;
224
- t['Nimbus Roman'] = true;
225
- t['NPS Rawlinson Roadway'] = true;
226
- t['NuptialScript'] = true;
227
- t['Palatino'] = true;
228
- t['Perpetua'] = true;
229
- t['Plantin'] = true;
230
- t['Plantin Schoolbook'] = true;
231
- t['Playbill'] = true;
232
- t['Poor Richard'] = true;
233
- t['Rawlinson Roadway'] = true;
234
- t['Renault'] = true;
235
- t['Requiem'] = true;
236
- t['Rockwell'] = true;
237
- t['Roman'] = true;
238
- t['Rotis Serif'] = true;
239
- t['Sabon'] = true;
240
- t['Scala'] = true;
241
- t['Seagull'] = true;
242
- t['Sistina'] = true;
243
- t['Souvenir'] = true;
244
- t['STIX'] = true;
245
- t['Stone Informal'] = true;
246
- t['Stone Serif'] = true;
247
- t['Sylfaen'] = true;
248
- t['Times'] = true;
249
- t['Trajan'] = true;
250
- t['Trinité'] = true;
251
- t['Trump Mediaeval'] = true;
252
- t['Utopia'] = true;
253
- t['Vale Type'] = true;
254
- t['Bitstream Vera'] = true;
255
- t['Vera Serif'] = true;
256
- t['Versailles'] = true;
257
- t['Wanted'] = true;
258
- t['Weiss'] = true;
259
- t['Wide Latin'] = true;
260
- t['Windsor'] = true;
261
- t['XITS'] = true;
129
+ const getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
130
+ t["Adobe Jenson"] = true;
131
+ t["Adobe Text"] = true;
132
+ t.Albertus = true;
133
+ t.Aldus = true;
134
+ t.Alexandria = true;
135
+ t.Algerian = true;
136
+ t["American Typewriter"] = true;
137
+ t.Antiqua = true;
138
+ t.Apex = true;
139
+ t.Arno = true;
140
+ t.Aster = true;
141
+ t.Aurora = true;
142
+ t.Baskerville = true;
143
+ t.Bell = true;
144
+ t.Bembo = true;
145
+ t["Bembo Schoolbook"] = true;
146
+ t.Benguiat = true;
147
+ t["Berkeley Old Style"] = true;
148
+ t["Bernhard Modern"] = true;
149
+ t["Berthold City"] = true;
150
+ t.Bodoni = true;
151
+ t["Bauer Bodoni"] = true;
152
+ t["Book Antiqua"] = true;
153
+ t.Bookman = true;
154
+ t["Bordeaux Roman"] = true;
155
+ t["Californian FB"] = true;
156
+ t.Calisto = true;
157
+ t.Calvert = true;
158
+ t.Capitals = true;
159
+ t.Cambria = true;
160
+ t.Cartier = true;
161
+ t.Caslon = true;
162
+ t.Catull = true;
163
+ t.Centaur = true;
164
+ t["Century Old Style"] = true;
165
+ t["Century Schoolbook"] = true;
166
+ t.Chaparral = true;
167
+ t["Charis SIL"] = true;
168
+ t.Cheltenham = true;
169
+ t["Cholla Slab"] = true;
170
+ t.Clarendon = true;
171
+ t.Clearface = true;
172
+ t.Cochin = true;
173
+ t.Colonna = true;
174
+ t["Computer Modern"] = true;
175
+ t["Concrete Roman"] = true;
176
+ t.Constantia = true;
177
+ t["Cooper Black"] = true;
178
+ t.Corona = true;
179
+ t.Ecotype = true;
180
+ t.Egyptienne = true;
181
+ t.Elephant = true;
182
+ t.Excelsior = true;
183
+ t.Fairfield = true;
184
+ t["FF Scala"] = true;
185
+ t.Folkard = true;
186
+ t.Footlight = true;
187
+ t.FreeSerif = true;
188
+ t["Friz Quadrata"] = true;
189
+ t.Garamond = true;
190
+ t.Gentium = true;
191
+ t.Georgia = true;
192
+ t.Gloucester = true;
193
+ t["Goudy Old Style"] = true;
194
+ t["Goudy Schoolbook"] = true;
195
+ t["Goudy Pro Font"] = true;
196
+ t.Granjon = true;
197
+ t["Guardian Egyptian"] = true;
198
+ t.Heather = true;
199
+ t.Hercules = true;
200
+ t["High Tower Text"] = true;
201
+ t.Hiroshige = true;
202
+ t["Hoefler Text"] = true;
203
+ t["Humana Serif"] = true;
204
+ t.Imprint = true;
205
+ t["Ionic No. 5"] = true;
206
+ t.Janson = true;
207
+ t.Joanna = true;
208
+ t.Korinna = true;
209
+ t.Lexicon = true;
210
+ t["Liberation Serif"] = true;
211
+ t["Linux Libertine"] = true;
212
+ t.Literaturnaya = true;
213
+ t.Lucida = true;
214
+ t["Lucida Bright"] = true;
215
+ t.Melior = true;
216
+ t.Memphis = true;
217
+ t.Miller = true;
218
+ t.Minion = true;
219
+ t.Modern = true;
220
+ t["Mona Lisa"] = true;
221
+ t["Mrs Eaves"] = true;
222
+ t["MS Serif"] = true;
223
+ t["Museo Slab"] = true;
224
+ t["New York"] = true;
225
+ t["Nimbus Roman"] = true;
226
+ t["NPS Rawlinson Roadway"] = true;
227
+ t.NuptialScript = true;
228
+ t.Palatino = true;
229
+ t.Perpetua = true;
230
+ t.Plantin = true;
231
+ t["Plantin Schoolbook"] = true;
232
+ t.Playbill = true;
233
+ t["Poor Richard"] = true;
234
+ t["Rawlinson Roadway"] = true;
235
+ t.Renault = true;
236
+ t.Requiem = true;
237
+ t.Rockwell = true;
238
+ t.Roman = true;
239
+ t["Rotis Serif"] = true;
240
+ t.Sabon = true;
241
+ t.Scala = true;
242
+ t.Seagull = true;
243
+ t.Sistina = true;
244
+ t.Souvenir = true;
245
+ t.STIX = true;
246
+ t["Stone Informal"] = true;
247
+ t["Stone Serif"] = true;
248
+ t.Sylfaen = true;
249
+ t.Times = true;
250
+ t.Trajan = true;
251
+ t["Trinité"] = true;
252
+ t["Trump Mediaeval"] = true;
253
+ t.Utopia = true;
254
+ t["Vale Type"] = true;
255
+ t["Bitstream Vera"] = true;
256
+ t["Vera Serif"] = true;
257
+ t.Versailles = true;
258
+ t.Wanted = true;
259
+ t.Weiss = true;
260
+ t["Wide Latin"] = true;
261
+ t.Windsor = true;
262
+ t.XITS = true;
262
263
  });
263
264
  exports.getSerifFonts = getSerifFonts;
264
- var getSymbolsFonts = (0, _util.getLookupTableFactory)(function (t) {
265
- t['Dingbats'] = true;
266
- t['Symbol'] = true;
267
- t['ZapfDingbats'] = true;
265
+ const getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
266
+ t.Dingbats = true;
267
+ t.Symbol = true;
268
+ t.ZapfDingbats = true;
268
269
  });
269
270
  exports.getSymbolsFonts = getSymbolsFonts;
270
- var getGlyphMapForStandardFonts = (0, _util.getLookupTableFactory)(function (t) {
271
+ const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
271
272
  t[2] = 10;
272
273
  t[3] = 32;
273
274
  t[4] = 33;
@@ -663,13 +664,13 @@ var getGlyphMapForStandardFonts = (0, _util.getLookupTableFactory)(function (t)
663
664
  t[3416] = 8377;
664
665
  });
665
666
  exports.getGlyphMapForStandardFonts = getGlyphMapForStandardFonts;
666
- var getSupplementalGlyphMapForArialBlack = (0, _util.getLookupTableFactory)(function (t) {
667
+ const getSupplementalGlyphMapForArialBlack = (0, _core_utils.getLookupTableFactory)(function (t) {
667
668
  t[227] = 322;
668
669
  t[264] = 261;
669
670
  t[291] = 346;
670
671
  });
671
672
  exports.getSupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack;
672
- var getSupplementalGlyphMapForCalibri = (0, _util.getLookupTableFactory)(function (t) {
673
+ const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)(function (t) {
673
674
  t[1] = 32;
674
675
  t[4] = 65;
675
676
  t[17] = 66;