Skip to content

Commit 83e1064

Browse files
Merge pull request #13920 from Snuffleupagus/issue-13916
Extend the glyph maps for standard respectively Calibri fonts (issue 13916)
2 parents db11ba0 + ac27f96 commit 83e1064

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

src/core/standard_fonts.js

+25
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,17 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
471471
t[169] = 171;
472472
t[170] = 187;
473473
t[171] = 8230;
474+
t[200] = 193;
475+
t[203] = 205;
474476
t[210] = 218;
475477
t[223] = 711;
476478
t[224] = 321;
477479
t[225] = 322;
480+
t[226] = 352;
478481
t[227] = 353;
482+
t[228] = 381;
479483
t[229] = 382;
484+
t[233] = 221;
480485
t[234] = 253;
481486
t[252] = 263;
482487
t[253] = 268;
@@ -486,11 +491,13 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
486491
t[261] = 261;
487492
t[265] = 280;
488493
t[266] = 281;
494+
t[267] = 282;
489495
t[268] = 283;
490496
t[269] = 313;
491497
t[275] = 323;
492498
t[276] = 324;
493499
t[278] = 328;
500+
t[283] = 344;
494501
t[284] = 345;
495502
t[285] = 346;
496503
t[286] = 347;
@@ -714,14 +721,19 @@ const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(function (
714721
const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
715722
t[1] = 32;
716723
t[4] = 65;
724+
t[6] = 193;
717725
t[17] = 66;
718726
t[18] = 67;
727+
t[21] = 268;
719728
t[24] = 68;
720729
t[28] = 69;
730+
t[30] = 201;
731+
t[32] = 282;
721732
t[38] = 70;
722733
t[39] = 71;
723734
t[44] = 72;
724735
t[47] = 73;
736+
t[49] = 205;
725737
t[58] = 74;
726738
t[60] = 75;
727739
t[62] = 76;
@@ -731,26 +743,35 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
731743
t[87] = 80;
732744
t[89] = 81;
733745
t[90] = 82;
746+
t[92] = 344;
734747
t[94] = 83;
748+
t[97] = 352;
735749
t[100] = 84;
736750
t[104] = 85;
737751
t[115] = 86;
738752
t[116] = 87;
739753
t[121] = 88;
740754
t[122] = 89;
755+
t[124] = 221;
741756
t[127] = 90;
757+
t[129] = 381;
742758
t[258] = 97;
759+
t[260] = 225;
743760
t[268] = 261;
744761
t[271] = 98;
745762
t[272] = 99;
746763
t[273] = 263;
764+
t[275] = 269;
747765
t[282] = 100;
748766
t[286] = 101;
767+
t[288] = 233;
768+
t[290] = 283;
749769
t[295] = 281;
750770
t[296] = 102;
751771
t[336] = 103;
752772
t[346] = 104;
753773
t[349] = 105;
774+
t[351] = 237;
754775
t[361] = 106;
755776
t[364] = 107;
756777
t[367] = 108;
@@ -762,15 +783,19 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
762783
t[393] = 112;
763784
t[395] = 113;
764785
t[396] = 114;
786+
t[398] = 345;
765787
t[400] = 115;
766788
t[401] = 347;
789+
t[403] = 353;
767790
t[410] = 116;
768791
t[437] = 117;
769792
t[448] = 118;
770793
t[449] = 119;
771794
t[454] = 120;
772795
t[455] = 121;
796+
t[457] = 253;
773797
t[460] = 122;
798+
t[462] = 382;
774799
t[463] = 380;
775800
t[853] = 44;
776801
t[855] = 58;

test/pdfs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
!issue11578_reduced.pdf
110110
!issue11651.pdf
111111
!issue11878.pdf
112+
!issue13916.pdf
112113
!bad-PageLabels.pdf
113114
!decodeACSuccessive.pdf
114115
!filled-background.pdf

test/pdfs/issue13916.pdf

5.29 KB
Binary file not shown.

test/test_manifest.json

+6
Original file line numberDiff line numberDiff line change
@@ -4955,6 +4955,12 @@
49554955
"type": "eq",
49564956
"about": "JPX packets"
49574957
},
4958+
{ "id": "issue13916",
4959+
"file": "pdfs/issue13916.pdf",
4960+
"md5": "5cfaff104b17f325610936875363541f",
4961+
"rounds": 1,
4962+
"type": "eq"
4963+
},
49584964
{ "id": "bug766138",
49594965
"file": "pdfs/bug766138.pdf",
49604966
"md5": "b171f5cf8d9834348112fba60ee54f8c",

0 commit comments

Comments
 (0)