1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Extend the glyph maps for standard respectively Calibri fonts (issue 13916)

This commit is contained in:
Jonas Jenwald 2021-08-20 23:17:53 +02:00
parent 6b2c913413
commit ac27f96987
4 changed files with 252 additions and 0 deletions

View file

@ -471,12 +471,17 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
t[169] = 171;
t[170] = 187;
t[171] = 8230;
t[200] = 193;
t[203] = 205;
t[210] = 218;
t[223] = 711;
t[224] = 321;
t[225] = 322;
t[226] = 352;
t[227] = 353;
t[228] = 381;
t[229] = 382;
t[233] = 221;
t[234] = 253;
t[252] = 263;
t[253] = 268;
@ -486,11 +491,13 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
t[261] = 261;
t[265] = 280;
t[266] = 281;
t[267] = 282;
t[268] = 283;
t[269] = 313;
t[275] = 323;
t[276] = 324;
t[278] = 328;
t[283] = 344;
t[284] = 345;
t[285] = 346;
t[286] = 347;
@ -714,14 +721,19 @@ const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(function (
const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[1] = 32;
t[4] = 65;
t[6] = 193;
t[17] = 66;
t[18] = 67;
t[21] = 268;
t[24] = 68;
t[28] = 69;
t[30] = 201;
t[32] = 282;
t[38] = 70;
t[39] = 71;
t[44] = 72;
t[47] = 73;
t[49] = 205;
t[58] = 74;
t[60] = 75;
t[62] = 76;
@ -731,26 +743,35 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[87] = 80;
t[89] = 81;
t[90] = 82;
t[92] = 344;
t[94] = 83;
t[97] = 352;
t[100] = 84;
t[104] = 85;
t[115] = 86;
t[116] = 87;
t[121] = 88;
t[122] = 89;
t[124] = 221;
t[127] = 90;
t[129] = 381;
t[258] = 97;
t[260] = 225;
t[268] = 261;
t[271] = 98;
t[272] = 99;
t[273] = 263;
t[275] = 269;
t[282] = 100;
t[286] = 101;
t[288] = 233;
t[290] = 283;
t[295] = 281;
t[296] = 102;
t[336] = 103;
t[346] = 104;
t[349] = 105;
t[351] = 237;
t[361] = 106;
t[364] = 107;
t[367] = 108;
@ -762,15 +783,19 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[393] = 112;
t[395] = 113;
t[396] = 114;
t[398] = 345;
t[400] = 115;
t[401] = 347;
t[403] = 353;
t[410] = 116;
t[437] = 117;
t[448] = 118;
t[449] = 119;
t[454] = 120;
t[455] = 121;
t[457] = 253;
t[460] = 122;
t[462] = 382;
t[463] = 380;
t[853] = 44;
t[855] = 58;