2
0

standard_fonts.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * JavaScript code in this page
  4. *
  5. * Copyright 2022 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * JavaScript code in this page
  21. */
  22. "use strict";
  23. Object.defineProperty(exports, "__esModule", {
  24. value: true
  25. });
  26. exports.getSerifFonts = exports.getNonStdFontMap = exports.getGlyphMapForStandardFonts = exports.getFontNameToFileMap = void 0;
  27. exports.getStandardFontName = getStandardFontName;
  28. exports.getSymbolsFonts = exports.getSupplementalGlyphMapForCalibri = exports.getSupplementalGlyphMapForArialBlack = exports.getStdFontMap = void 0;
  29. var _core_utils = require("./core_utils.js");
  30. var _fonts_utils = require("./fonts_utils.js");
  31. const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
  32. t["Times-Roman"] = "Times-Roman";
  33. t.Helvetica = "Helvetica";
  34. t.Courier = "Courier";
  35. t.Symbol = "Symbol";
  36. t["Times-Bold"] = "Times-Bold";
  37. t["Helvetica-Bold"] = "Helvetica-Bold";
  38. t["Courier-Bold"] = "Courier-Bold";
  39. t.ZapfDingbats = "ZapfDingbats";
  40. t["Times-Italic"] = "Times-Italic";
  41. t["Helvetica-Oblique"] = "Helvetica-Oblique";
  42. t["Courier-Oblique"] = "Courier-Oblique";
  43. t["Times-BoldItalic"] = "Times-BoldItalic";
  44. t["Helvetica-BoldOblique"] = "Helvetica-BoldOblique";
  45. t["Courier-BoldOblique"] = "Courier-BoldOblique";
  46. t.ArialNarrow = "Helvetica";
  47. t["ArialNarrow-Bold"] = "Helvetica-Bold";
  48. t["ArialNarrow-BoldItalic"] = "Helvetica-BoldOblique";
  49. t["ArialNarrow-Italic"] = "Helvetica-Oblique";
  50. t.ArialBlack = "Helvetica";
  51. t["ArialBlack-Bold"] = "Helvetica-Bold";
  52. t["ArialBlack-BoldItalic"] = "Helvetica-BoldOblique";
  53. t["ArialBlack-Italic"] = "Helvetica-Oblique";
  54. t["Arial-Black"] = "Helvetica";
  55. t["Arial-Black-Bold"] = "Helvetica-Bold";
  56. t["Arial-Black-BoldItalic"] = "Helvetica-BoldOblique";
  57. t["Arial-Black-Italic"] = "Helvetica-Oblique";
  58. t.Arial = "Helvetica";
  59. t["Arial-Bold"] = "Helvetica-Bold";
  60. t["Arial-BoldItalic"] = "Helvetica-BoldOblique";
  61. t["Arial-Italic"] = "Helvetica-Oblique";
  62. t.ArialMT = "Helvetica";
  63. t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
  64. t["Arial-BoldMT"] = "Helvetica-Bold";
  65. t["Arial-ItalicMT"] = "Helvetica-Oblique";
  66. t.ArialUnicodeMS = "Helvetica";
  67. t["ArialUnicodeMS-Bold"] = "Helvetica-Bold";
  68. t["ArialUnicodeMS-BoldItalic"] = "Helvetica-BoldOblique";
  69. t["ArialUnicodeMS-Italic"] = "Helvetica-Oblique";
  70. t["Courier-BoldItalic"] = "Courier-BoldOblique";
  71. t["Courier-Italic"] = "Courier-Oblique";
  72. t.CourierNew = "Courier";
  73. t["CourierNew-Bold"] = "Courier-Bold";
  74. t["CourierNew-BoldItalic"] = "Courier-BoldOblique";
  75. t["CourierNew-Italic"] = "Courier-Oblique";
  76. t["CourierNewPS-BoldItalicMT"] = "Courier-BoldOblique";
  77. t["CourierNewPS-BoldMT"] = "Courier-Bold";
  78. t["CourierNewPS-ItalicMT"] = "Courier-Oblique";
  79. t.CourierNewPSMT = "Courier";
  80. t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique";
  81. t["Helvetica-Italic"] = "Helvetica-Oblique";
  82. t["Symbol-Bold"] = "Symbol";
  83. t["Symbol-BoldItalic"] = "Symbol";
  84. t["Symbol-Italic"] = "Symbol";
  85. t.TimesNewRoman = "Times-Roman";
  86. t["TimesNewRoman-Bold"] = "Times-Bold";
  87. t["TimesNewRoman-BoldItalic"] = "Times-BoldItalic";
  88. t["TimesNewRoman-Italic"] = "Times-Italic";
  89. t.TimesNewRomanPS = "Times-Roman";
  90. t["TimesNewRomanPS-Bold"] = "Times-Bold";
  91. t["TimesNewRomanPS-BoldItalic"] = "Times-BoldItalic";
  92. t["TimesNewRomanPS-BoldItalicMT"] = "Times-BoldItalic";
  93. t["TimesNewRomanPS-BoldMT"] = "Times-Bold";
  94. t["TimesNewRomanPS-Italic"] = "Times-Italic";
  95. t["TimesNewRomanPS-ItalicMT"] = "Times-Italic";
  96. t.TimesNewRomanPSMT = "Times-Roman";
  97. t["TimesNewRomanPSMT-Bold"] = "Times-Bold";
  98. t["TimesNewRomanPSMT-BoldItalic"] = "Times-BoldItalic";
  99. t["TimesNewRomanPSMT-Italic"] = "Times-Italic";
  100. });
  101. exports.getStdFontMap = getStdFontMap;
  102. const getFontNameToFileMap = (0, _core_utils.getLookupTableFactory)(function (t) {
  103. t.Courier = "FoxitFixed.pfb";
  104. t["Courier-Bold"] = "FoxitFixedBold.pfb";
  105. t["Courier-BoldOblique"] = "FoxitFixedBoldItalic.pfb";
  106. t["Courier-Oblique"] = "FoxitFixedItalic.pfb";
  107. t.Helvetica = "FoxitSans.pfb";
  108. t["Helvetica-Bold"] = "FoxitSansBold.pfb";
  109. t["Helvetica-BoldOblique"] = "FoxitSansBoldItalic.pfb";
  110. t["Helvetica-Oblique"] = "FoxitSansItalic.pfb";
  111. t["Times-Roman"] = "FoxitSerif.pfb";
  112. t["Times-Bold"] = "FoxitSerifBold.pfb";
  113. t["Times-BoldItalic"] = "FoxitSerifBoldItalic.pfb";
  114. t["Times-Italic"] = "FoxitSerifItalic.pfb";
  115. t.Symbol = "FoxitSymbol.pfb";
  116. t.ZapfDingbats = "FoxitDingbats.pfb";
  117. t["LiberationSans-Regular"] = "LiberationSans-Regular.ttf";
  118. t["LiberationSans-Bold"] = "LiberationSans-Bold.ttf";
  119. t["LiberationSans-Italic"] = "LiberationSans-Italic.ttf";
  120. t["LiberationSans-BoldItalic"] = "LiberationSans-BoldItalic.ttf";
  121. });
  122. exports.getFontNameToFileMap = getFontNameToFileMap;
  123. const getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
  124. t.Calibri = "Helvetica";
  125. t["Calibri-Bold"] = "Helvetica-Bold";
  126. t["Calibri-BoldItalic"] = "Helvetica-BoldOblique";
  127. t["Calibri-Italic"] = "Helvetica-Oblique";
  128. t.CenturyGothic = "Helvetica";
  129. t["CenturyGothic-Bold"] = "Helvetica-Bold";
  130. t["CenturyGothic-BoldItalic"] = "Helvetica-BoldOblique";
  131. t["CenturyGothic-Italic"] = "Helvetica-Oblique";
  132. t.ComicSansMS = "Comic Sans MS";
  133. t["ComicSansMS-Bold"] = "Comic Sans MS-Bold";
  134. t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic";
  135. t["ComicSansMS-Italic"] = "Comic Sans MS-Italic";
  136. t["ItcSymbol-Bold"] = "Helvetica-Bold";
  137. t["ItcSymbol-BoldItalic"] = "Helvetica-BoldOblique";
  138. t["ItcSymbol-Book"] = "Helvetica";
  139. t["ItcSymbol-BookItalic"] = "Helvetica-Oblique";
  140. t["ItcSymbol-Medium"] = "Helvetica";
  141. t["ItcSymbol-MediumItalic"] = "Helvetica-Oblique";
  142. t.LucidaConsole = "Courier";
  143. t["LucidaConsole-Bold"] = "Courier-Bold";
  144. t["LucidaConsole-BoldItalic"] = "Courier-BoldOblique";
  145. t["LucidaConsole-Italic"] = "Courier-Oblique";
  146. t["LucidaSans-Demi"] = "Helvetica-Bold";
  147. t["MS-Gothic"] = "MS Gothic";
  148. t["MS-Gothic-Bold"] = "MS Gothic-Bold";
  149. t["MS-Gothic-BoldItalic"] = "MS Gothic-BoldItalic";
  150. t["MS-Gothic-Italic"] = "MS Gothic-Italic";
  151. t["MS-Mincho"] = "MS Mincho";
  152. t["MS-Mincho-Bold"] = "MS Mincho-Bold";
  153. t["MS-Mincho-BoldItalic"] = "MS Mincho-BoldItalic";
  154. t["MS-Mincho-Italic"] = "MS Mincho-Italic";
  155. t["MS-PGothic"] = "MS PGothic";
  156. t["MS-PGothic-Bold"] = "MS PGothic-Bold";
  157. t["MS-PGothic-BoldItalic"] = "MS PGothic-BoldItalic";
  158. t["MS-PGothic-Italic"] = "MS PGothic-Italic";
  159. t["MS-PMincho"] = "MS PMincho";
  160. t["MS-PMincho-Bold"] = "MS PMincho-Bold";
  161. t["MS-PMincho-BoldItalic"] = "MS PMincho-BoldItalic";
  162. t["MS-PMincho-Italic"] = "MS PMincho-Italic";
  163. t.NuptialScript = "Times-Italic";
  164. t.SegoeUISymbol = "Helvetica";
  165. t.Wingdings = "ZapfDingbats";
  166. t["Wingdings-Regular"] = "ZapfDingbats";
  167. });
  168. exports.getNonStdFontMap = getNonStdFontMap;
  169. const getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
  170. t["Adobe Jenson"] = true;
  171. t["Adobe Text"] = true;
  172. t.Albertus = true;
  173. t.Aldus = true;
  174. t.Alexandria = true;
  175. t.Algerian = true;
  176. t["American Typewriter"] = true;
  177. t.Antiqua = true;
  178. t.Apex = true;
  179. t.Arno = true;
  180. t.Aster = true;
  181. t.Aurora = true;
  182. t.Baskerville = true;
  183. t.Bell = true;
  184. t.Bembo = true;
  185. t["Bembo Schoolbook"] = true;
  186. t.Benguiat = true;
  187. t["Berkeley Old Style"] = true;
  188. t["Bernhard Modern"] = true;
  189. t["Berthold City"] = true;
  190. t.Bodoni = true;
  191. t["Bauer Bodoni"] = true;
  192. t["Book Antiqua"] = true;
  193. t.Bookman = true;
  194. t["Bordeaux Roman"] = true;
  195. t["Californian FB"] = true;
  196. t.Calisto = true;
  197. t.Calvert = true;
  198. t.Capitals = true;
  199. t.Cambria = true;
  200. t.Cartier = true;
  201. t.Caslon = true;
  202. t.Catull = true;
  203. t.Centaur = true;
  204. t["Century Old Style"] = true;
  205. t["Century Schoolbook"] = true;
  206. t.Chaparral = true;
  207. t["Charis SIL"] = true;
  208. t.Cheltenham = true;
  209. t["Cholla Slab"] = true;
  210. t.Clarendon = true;
  211. t.Clearface = true;
  212. t.Cochin = true;
  213. t.Colonna = true;
  214. t["Computer Modern"] = true;
  215. t["Concrete Roman"] = true;
  216. t.Constantia = true;
  217. t["Cooper Black"] = true;
  218. t.Corona = true;
  219. t.Ecotype = true;
  220. t.Egyptienne = true;
  221. t.Elephant = true;
  222. t.Excelsior = true;
  223. t.Fairfield = true;
  224. t["FF Scala"] = true;
  225. t.Folkard = true;
  226. t.Footlight = true;
  227. t.FreeSerif = true;
  228. t["Friz Quadrata"] = true;
  229. t.Garamond = true;
  230. t.Gentium = true;
  231. t.Georgia = true;
  232. t.Gloucester = true;
  233. t["Goudy Old Style"] = true;
  234. t["Goudy Schoolbook"] = true;
  235. t["Goudy Pro Font"] = true;
  236. t.Granjon = true;
  237. t["Guardian Egyptian"] = true;
  238. t.Heather = true;
  239. t.Hercules = true;
  240. t["High Tower Text"] = true;
  241. t.Hiroshige = true;
  242. t["Hoefler Text"] = true;
  243. t["Humana Serif"] = true;
  244. t.Imprint = true;
  245. t["Ionic No. 5"] = true;
  246. t.Janson = true;
  247. t.Joanna = true;
  248. t.Korinna = true;
  249. t.Lexicon = true;
  250. t.LiberationSerif = true;
  251. t["Liberation Serif"] = true;
  252. t["Linux Libertine"] = true;
  253. t.Literaturnaya = true;
  254. t.Lucida = true;
  255. t["Lucida Bright"] = true;
  256. t.Melior = true;
  257. t.Memphis = true;
  258. t.Miller = true;
  259. t.Minion = true;
  260. t.Modern = true;
  261. t["Mona Lisa"] = true;
  262. t["Mrs Eaves"] = true;
  263. t["MS Serif"] = true;
  264. t["Museo Slab"] = true;
  265. t["New York"] = true;
  266. t["Nimbus Roman"] = true;
  267. t["NPS Rawlinson Roadway"] = true;
  268. t.NuptialScript = true;
  269. t.Palatino = true;
  270. t.Perpetua = true;
  271. t.Plantin = true;
  272. t["Plantin Schoolbook"] = true;
  273. t.Playbill = true;
  274. t["Poor Richard"] = true;
  275. t["Rawlinson Roadway"] = true;
  276. t.Renault = true;
  277. t.Requiem = true;
  278. t.Rockwell = true;
  279. t.Roman = true;
  280. t["Rotis Serif"] = true;
  281. t.Sabon = true;
  282. t.Scala = true;
  283. t.Seagull = true;
  284. t.Sistina = true;
  285. t.Souvenir = true;
  286. t.STIX = true;
  287. t["Stone Informal"] = true;
  288. t["Stone Serif"] = true;
  289. t.Sylfaen = true;
  290. t.Times = true;
  291. t.Trajan = true;
  292. t["Trinité"] = true;
  293. t["Trump Mediaeval"] = true;
  294. t.Utopia = true;
  295. t["Vale Type"] = true;
  296. t["Bitstream Vera"] = true;
  297. t["Vera Serif"] = true;
  298. t.Versailles = true;
  299. t.Wanted = true;
  300. t.Weiss = true;
  301. t["Wide Latin"] = true;
  302. t.Windsor = true;
  303. t.XITS = true;
  304. });
  305. exports.getSerifFonts = getSerifFonts;
  306. const getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
  307. t.Dingbats = true;
  308. t.Symbol = true;
  309. t.ZapfDingbats = true;
  310. });
  311. exports.getSymbolsFonts = getSymbolsFonts;
  312. const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
  313. t[2] = 10;
  314. t[3] = 32;
  315. t[4] = 33;
  316. t[5] = 34;
  317. t[6] = 35;
  318. t[7] = 36;
  319. t[8] = 37;
  320. t[9] = 38;
  321. t[10] = 39;
  322. t[11] = 40;
  323. t[12] = 41;
  324. t[13] = 42;
  325. t[14] = 43;
  326. t[15] = 44;
  327. t[16] = 45;
  328. t[17] = 46;
  329. t[18] = 47;
  330. t[19] = 48;
  331. t[20] = 49;
  332. t[21] = 50;
  333. t[22] = 51;
  334. t[23] = 52;
  335. t[24] = 53;
  336. t[25] = 54;
  337. t[26] = 55;
  338. t[27] = 56;
  339. t[28] = 57;
  340. t[29] = 58;
  341. t[30] = 894;
  342. t[31] = 60;
  343. t[32] = 61;
  344. t[33] = 62;
  345. t[34] = 63;
  346. t[35] = 64;
  347. t[36] = 65;
  348. t[37] = 66;
  349. t[38] = 67;
  350. t[39] = 68;
  351. t[40] = 69;
  352. t[41] = 70;
  353. t[42] = 71;
  354. t[43] = 72;
  355. t[44] = 73;
  356. t[45] = 74;
  357. t[46] = 75;
  358. t[47] = 76;
  359. t[48] = 77;
  360. t[49] = 78;
  361. t[50] = 79;
  362. t[51] = 80;
  363. t[52] = 81;
  364. t[53] = 82;
  365. t[54] = 83;
  366. t[55] = 84;
  367. t[56] = 85;
  368. t[57] = 86;
  369. t[58] = 87;
  370. t[59] = 88;
  371. t[60] = 89;
  372. t[61] = 90;
  373. t[62] = 91;
  374. t[63] = 92;
  375. t[64] = 93;
  376. t[65] = 94;
  377. t[66] = 95;
  378. t[67] = 96;
  379. t[68] = 97;
  380. t[69] = 98;
  381. t[70] = 99;
  382. t[71] = 100;
  383. t[72] = 101;
  384. t[73] = 102;
  385. t[74] = 103;
  386. t[75] = 104;
  387. t[76] = 105;
  388. t[77] = 106;
  389. t[78] = 107;
  390. t[79] = 108;
  391. t[80] = 109;
  392. t[81] = 110;
  393. t[82] = 111;
  394. t[83] = 112;
  395. t[84] = 113;
  396. t[85] = 114;
  397. t[86] = 115;
  398. t[87] = 116;
  399. t[88] = 117;
  400. t[89] = 118;
  401. t[90] = 119;
  402. t[91] = 120;
  403. t[92] = 121;
  404. t[93] = 122;
  405. t[94] = 123;
  406. t[95] = 124;
  407. t[96] = 125;
  408. t[97] = 126;
  409. t[98] = 196;
  410. t[99] = 197;
  411. t[100] = 199;
  412. t[101] = 201;
  413. t[102] = 209;
  414. t[103] = 214;
  415. t[104] = 220;
  416. t[105] = 225;
  417. t[106] = 224;
  418. t[107] = 226;
  419. t[108] = 228;
  420. t[109] = 227;
  421. t[110] = 229;
  422. t[111] = 231;
  423. t[112] = 233;
  424. t[113] = 232;
  425. t[114] = 234;
  426. t[115] = 235;
  427. t[116] = 237;
  428. t[117] = 236;
  429. t[118] = 238;
  430. t[119] = 239;
  431. t[120] = 241;
  432. t[121] = 243;
  433. t[122] = 242;
  434. t[123] = 244;
  435. t[124] = 246;
  436. t[125] = 245;
  437. t[126] = 250;
  438. t[127] = 249;
  439. t[128] = 251;
  440. t[129] = 252;
  441. t[130] = 8224;
  442. t[131] = 176;
  443. t[132] = 162;
  444. t[133] = 163;
  445. t[134] = 167;
  446. t[135] = 8226;
  447. t[136] = 182;
  448. t[137] = 223;
  449. t[138] = 174;
  450. t[139] = 169;
  451. t[140] = 8482;
  452. t[141] = 180;
  453. t[142] = 168;
  454. t[143] = 8800;
  455. t[144] = 198;
  456. t[145] = 216;
  457. t[146] = 8734;
  458. t[147] = 177;
  459. t[148] = 8804;
  460. t[149] = 8805;
  461. t[150] = 165;
  462. t[151] = 181;
  463. t[152] = 8706;
  464. t[153] = 8721;
  465. t[154] = 8719;
  466. t[156] = 8747;
  467. t[157] = 170;
  468. t[158] = 186;
  469. t[159] = 8486;
  470. t[160] = 230;
  471. t[161] = 248;
  472. t[162] = 191;
  473. t[163] = 161;
  474. t[164] = 172;
  475. t[165] = 8730;
  476. t[166] = 402;
  477. t[167] = 8776;
  478. t[168] = 8710;
  479. t[169] = 171;
  480. t[170] = 187;
  481. t[171] = 8230;
  482. t[179] = 8220;
  483. t[180] = 8221;
  484. t[181] = 8216;
  485. t[182] = 8217;
  486. t[200] = 193;
  487. t[203] = 205;
  488. t[210] = 218;
  489. t[223] = 711;
  490. t[224] = 321;
  491. t[225] = 322;
  492. t[226] = 352;
  493. t[227] = 353;
  494. t[228] = 381;
  495. t[229] = 382;
  496. t[233] = 221;
  497. t[234] = 253;
  498. t[252] = 263;
  499. t[253] = 268;
  500. t[254] = 269;
  501. t[258] = 258;
  502. t[260] = 260;
  503. t[261] = 261;
  504. t[265] = 280;
  505. t[266] = 281;
  506. t[267] = 282;
  507. t[268] = 283;
  508. t[269] = 313;
  509. t[275] = 323;
  510. t[276] = 324;
  511. t[278] = 328;
  512. t[283] = 344;
  513. t[284] = 345;
  514. t[285] = 346;
  515. t[286] = 347;
  516. t[292] = 367;
  517. t[295] = 377;
  518. t[296] = 378;
  519. t[298] = 380;
  520. t[305] = 963;
  521. t[306] = 964;
  522. t[307] = 966;
  523. t[308] = 8215;
  524. t[309] = 8252;
  525. t[310] = 8319;
  526. t[311] = 8359;
  527. t[312] = 8592;
  528. t[313] = 8593;
  529. t[337] = 9552;
  530. t[493] = 1039;
  531. t[494] = 1040;
  532. t[672] = 1488;
  533. t[673] = 1489;
  534. t[674] = 1490;
  535. t[675] = 1491;
  536. t[676] = 1492;
  537. t[677] = 1493;
  538. t[678] = 1494;
  539. t[679] = 1495;
  540. t[680] = 1496;
  541. t[681] = 1497;
  542. t[682] = 1498;
  543. t[683] = 1499;
  544. t[684] = 1500;
  545. t[685] = 1501;
  546. t[686] = 1502;
  547. t[687] = 1503;
  548. t[688] = 1504;
  549. t[689] = 1505;
  550. t[690] = 1506;
  551. t[691] = 1507;
  552. t[692] = 1508;
  553. t[693] = 1509;
  554. t[694] = 1510;
  555. t[695] = 1511;
  556. t[696] = 1512;
  557. t[697] = 1513;
  558. t[698] = 1514;
  559. t[705] = 1524;
  560. t[706] = 8362;
  561. t[710] = 64288;
  562. t[711] = 64298;
  563. t[759] = 1617;
  564. t[761] = 1776;
  565. t[763] = 1778;
  566. t[775] = 1652;
  567. t[777] = 1764;
  568. t[778] = 1780;
  569. t[779] = 1781;
  570. t[780] = 1782;
  571. t[782] = 771;
  572. t[783] = 64726;
  573. t[786] = 8363;
  574. t[788] = 8532;
  575. t[790] = 768;
  576. t[791] = 769;
  577. t[792] = 768;
  578. t[795] = 803;
  579. t[797] = 64336;
  580. t[798] = 64337;
  581. t[799] = 64342;
  582. t[800] = 64343;
  583. t[801] = 64344;
  584. t[802] = 64345;
  585. t[803] = 64362;
  586. t[804] = 64363;
  587. t[805] = 64364;
  588. t[2424] = 7821;
  589. t[2425] = 7822;
  590. t[2426] = 7823;
  591. t[2427] = 7824;
  592. t[2428] = 7825;
  593. t[2429] = 7826;
  594. t[2430] = 7827;
  595. t[2433] = 7682;
  596. t[2678] = 8045;
  597. t[2679] = 8046;
  598. t[2830] = 1552;
  599. t[2838] = 686;
  600. t[2840] = 751;
  601. t[2842] = 753;
  602. t[2843] = 754;
  603. t[2844] = 755;
  604. t[2846] = 757;
  605. t[2856] = 767;
  606. t[2857] = 848;
  607. t[2858] = 849;
  608. t[2862] = 853;
  609. t[2863] = 854;
  610. t[2864] = 855;
  611. t[2865] = 861;
  612. t[2866] = 862;
  613. t[2906] = 7460;
  614. t[2908] = 7462;
  615. t[2909] = 7463;
  616. t[2910] = 7464;
  617. t[2912] = 7466;
  618. t[2913] = 7467;
  619. t[2914] = 7468;
  620. t[2916] = 7470;
  621. t[2917] = 7471;
  622. t[2918] = 7472;
  623. t[2920] = 7474;
  624. t[2921] = 7475;
  625. t[2922] = 7476;
  626. t[2924] = 7478;
  627. t[2925] = 7479;
  628. t[2926] = 7480;
  629. t[2928] = 7482;
  630. t[2929] = 7483;
  631. t[2930] = 7484;
  632. t[2932] = 7486;
  633. t[2933] = 7487;
  634. t[2934] = 7488;
  635. t[2936] = 7490;
  636. t[2937] = 7491;
  637. t[2938] = 7492;
  638. t[2940] = 7494;
  639. t[2941] = 7495;
  640. t[2942] = 7496;
  641. t[2944] = 7498;
  642. t[2946] = 7500;
  643. t[2948] = 7502;
  644. t[2950] = 7504;
  645. t[2951] = 7505;
  646. t[2952] = 7506;
  647. t[2954] = 7508;
  648. t[2955] = 7509;
  649. t[2956] = 7510;
  650. t[2958] = 7512;
  651. t[2959] = 7513;
  652. t[2960] = 7514;
  653. t[2962] = 7516;
  654. t[2963] = 7517;
  655. t[2964] = 7518;
  656. t[2966] = 7520;
  657. t[2967] = 7521;
  658. t[2968] = 7522;
  659. t[2970] = 7524;
  660. t[2971] = 7525;
  661. t[2972] = 7526;
  662. t[2974] = 7528;
  663. t[2975] = 7529;
  664. t[2976] = 7530;
  665. t[2978] = 1537;
  666. t[2979] = 1538;
  667. t[2980] = 1539;
  668. t[2982] = 1549;
  669. t[2983] = 1551;
  670. t[2984] = 1552;
  671. t[2986] = 1554;
  672. t[2987] = 1555;
  673. t[2988] = 1556;
  674. t[2990] = 1623;
  675. t[2991] = 1624;
  676. t[2995] = 1775;
  677. t[2999] = 1791;
  678. t[3002] = 64290;
  679. t[3003] = 64291;
  680. t[3004] = 64292;
  681. t[3006] = 64294;
  682. t[3007] = 64295;
  683. t[3008] = 64296;
  684. t[3011] = 1900;
  685. t[3014] = 8223;
  686. t[3015] = 8244;
  687. t[3017] = 7532;
  688. t[3018] = 7533;
  689. t[3019] = 7534;
  690. t[3075] = 7590;
  691. t[3076] = 7591;
  692. t[3079] = 7594;
  693. t[3080] = 7595;
  694. t[3083] = 7598;
  695. t[3084] = 7599;
  696. t[3087] = 7602;
  697. t[3088] = 7603;
  698. t[3091] = 7606;
  699. t[3092] = 7607;
  700. t[3095] = 7610;
  701. t[3096] = 7611;
  702. t[3099] = 7614;
  703. t[3100] = 7615;
  704. t[3103] = 7618;
  705. t[3104] = 7619;
  706. t[3107] = 8337;
  707. t[3108] = 8338;
  708. t[3116] = 1884;
  709. t[3119] = 1885;
  710. t[3120] = 1885;
  711. t[3123] = 1886;
  712. t[3124] = 1886;
  713. t[3127] = 1887;
  714. t[3128] = 1887;
  715. t[3131] = 1888;
  716. t[3132] = 1888;
  717. t[3135] = 1889;
  718. t[3136] = 1889;
  719. t[3139] = 1890;
  720. t[3140] = 1890;
  721. t[3143] = 1891;
  722. t[3144] = 1891;
  723. t[3147] = 1892;
  724. t[3148] = 1892;
  725. t[3153] = 580;
  726. t[3154] = 581;
  727. t[3157] = 584;
  728. t[3158] = 585;
  729. t[3161] = 588;
  730. t[3162] = 589;
  731. t[3165] = 891;
  732. t[3166] = 892;
  733. t[3169] = 1274;
  734. t[3170] = 1275;
  735. t[3173] = 1278;
  736. t[3174] = 1279;
  737. t[3181] = 7622;
  738. t[3182] = 7623;
  739. t[3282] = 11799;
  740. t[3316] = 578;
  741. t[3379] = 42785;
  742. t[3393] = 1159;
  743. t[3416] = 8377;
  744. });
  745. exports.getGlyphMapForStandardFonts = getGlyphMapForStandardFonts;
  746. const getSupplementalGlyphMapForArialBlack = (0, _core_utils.getLookupTableFactory)(function (t) {
  747. t[227] = 322;
  748. t[264] = 261;
  749. t[291] = 346;
  750. });
  751. exports.getSupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack;
  752. const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)(function (t) {
  753. t[1] = 32;
  754. t[4] = 65;
  755. t[5] = 192;
  756. t[6] = 193;
  757. t[9] = 196;
  758. t[17] = 66;
  759. t[18] = 67;
  760. t[21] = 268;
  761. t[24] = 68;
  762. t[28] = 69;
  763. t[29] = 200;
  764. t[30] = 201;
  765. t[32] = 282;
  766. t[38] = 70;
  767. t[39] = 71;
  768. t[44] = 72;
  769. t[47] = 73;
  770. t[48] = 204;
  771. t[49] = 205;
  772. t[58] = 74;
  773. t[60] = 75;
  774. t[62] = 76;
  775. t[68] = 77;
  776. t[69] = 78;
  777. t[75] = 79;
  778. t[76] = 210;
  779. t[80] = 214;
  780. t[87] = 80;
  781. t[89] = 81;
  782. t[90] = 82;
  783. t[92] = 344;
  784. t[94] = 83;
  785. t[97] = 352;
  786. t[100] = 84;
  787. t[104] = 85;
  788. t[109] = 220;
  789. t[115] = 86;
  790. t[116] = 87;
  791. t[121] = 88;
  792. t[122] = 89;
  793. t[124] = 221;
  794. t[127] = 90;
  795. t[129] = 381;
  796. t[258] = 97;
  797. t[259] = 224;
  798. t[260] = 225;
  799. t[263] = 228;
  800. t[268] = 261;
  801. t[271] = 98;
  802. t[272] = 99;
  803. t[273] = 263;
  804. t[275] = 269;
  805. t[282] = 100;
  806. t[286] = 101;
  807. t[287] = 232;
  808. t[288] = 233;
  809. t[290] = 283;
  810. t[295] = 281;
  811. t[296] = 102;
  812. t[336] = 103;
  813. t[346] = 104;
  814. t[349] = 105;
  815. t[350] = 236;
  816. t[351] = 237;
  817. t[361] = 106;
  818. t[364] = 107;
  819. t[367] = 108;
  820. t[371] = 322;
  821. t[373] = 109;
  822. t[374] = 110;
  823. t[381] = 111;
  824. t[382] = 242;
  825. t[383] = 243;
  826. t[386] = 246;
  827. t[393] = 112;
  828. t[395] = 113;
  829. t[396] = 114;
  830. t[398] = 345;
  831. t[400] = 115;
  832. t[401] = 347;
  833. t[403] = 353;
  834. t[410] = 116;
  835. t[437] = 117;
  836. t[442] = 252;
  837. t[448] = 118;
  838. t[449] = 119;
  839. t[454] = 120;
  840. t[455] = 121;
  841. t[457] = 253;
  842. t[460] = 122;
  843. t[462] = 382;
  844. t[463] = 380;
  845. t[853] = 44;
  846. t[855] = 58;
  847. t[856] = 46;
  848. t[876] = 47;
  849. t[878] = 45;
  850. t[882] = 45;
  851. t[894] = 40;
  852. t[895] = 41;
  853. t[896] = 91;
  854. t[897] = 93;
  855. t[923] = 64;
  856. t[1004] = 48;
  857. t[1005] = 49;
  858. t[1006] = 50;
  859. t[1007] = 51;
  860. t[1008] = 52;
  861. t[1009] = 53;
  862. t[1010] = 54;
  863. t[1011] = 55;
  864. t[1012] = 56;
  865. t[1013] = 57;
  866. t[1081] = 37;
  867. t[1085] = 43;
  868. t[1086] = 45;
  869. });
  870. exports.getSupplementalGlyphMapForCalibri = getSupplementalGlyphMapForCalibri;
  871. function getStandardFontName(name) {
  872. const fontName = (0, _fonts_utils.normalizeFontName)(name);
  873. const stdFontMap = getStdFontMap();
  874. return stdFontMap[fontName];
  875. }