Extend getSupplementalGlyphMapForCalibri with more entries (issue 15443)

This commit is contained in:
Jonas Jenwald 2022-09-15 22:19:16 +02:00
parent 9bfd997c12
commit 7a19def34c
4 changed files with 117 additions and 0 deletions

View File

@ -763,18 +763,21 @@ const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(function (
const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[1] = 32;
t[4] = 65;
t[5] = 192;
t[6] = 193;
t[17] = 66;
t[18] = 67;
t[21] = 268;
t[24] = 68;
t[28] = 69;
t[29] = 200;
t[30] = 201;
t[32] = 282;
t[38] = 70;
t[39] = 71;
t[44] = 72;
t[47] = 73;
t[48] = 204;
t[49] = 205;
t[58] = 74;
t[60] = 75;
@ -782,6 +785,7 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[68] = 77;
t[69] = 78;
t[75] = 79;
t[76] = 210;
t[87] = 80;
t[89] = 81;
t[90] = 82;
@ -798,6 +802,7 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[127] = 90;
t[129] = 381;
t[258] = 97;
t[259] = 224;
t[260] = 225;
t[268] = 261;
t[271] = 98;
@ -806,6 +811,7 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[275] = 269;
t[282] = 100;
t[286] = 101;
t[287] = 232;
t[288] = 233;
t[290] = 283;
t[295] = 281;
@ -813,6 +819,7 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[336] = 103;
t[346] = 104;
t[349] = 105;
t[350] = 236;
t[351] = 237;
t[361] = 106;
t[364] = 107;
@ -821,6 +828,7 @@ const getSupplementalGlyphMapForCalibri = getLookupTableFactory(function (t) {
t[373] = 109;
t[374] = 110;
t[381] = 111;
t[382] = 242;
t[383] = 243;
t[393] = 112;
t[395] = 113;

View File

@ -470,6 +470,7 @@
!issue11656.pdf
!annotation-fileattachment.pdf
!annotation-text-widget.pdf
!issue15443.pdf
!annotation-choice-widget.pdf
!issue10900.pdf
!annotation-button-widget.pdf

102
test/pdfs/issue15443.pdf Normal file
View File

@ -0,0 +1,102 @@
%PDF-1.7
12 0 obj
<<
/Type /Catalog
/Pages 13 0 R
>>
endobj
13 0 obj
<<
/Type /Pages
/MediaBox [ 0 0 200 50 ]
/Count 1
/Kids [ 14 0 R ]
>>
endobj
14 0 obj
<<
/Type /Page
/Parent 13 0 R
/Resources <<
/Font <<
/F1 15 0 R
>>
>>
/Contents 16 0 R
>>
endobj
15 0 obj
<<
/Type /Font
/Subtype /Type0
/BaseFont /Calibri
/Encoding /Identity-H
/DescendantFonts [ 8 0 R ]
>>
endobj
16 0 obj
<<
/Length 75
>>
stream
BT
10 20 TD
/F1 20 Tf
<001e001d0005004c003000010120011f0103017e015e> Tj
ET
endstream
endobj
8 0 obj
<<
/Type /Font
/Subtype /CIDFontType2
/BaseFont /Calibri
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (Identity)
/Supplement 0
>>
/W [ 259 [ 479.004 ] 287 [ 497.559 ] 288 [ 497.559 ] 350 [ 229.492 ] 382 [ 527.344 ] ]
/FontDescriptor 9 0 R
>>
endobj
9 0 obj
<<
/Type /FontDescriptor
/Ascent 750
/CapHeight 0
/Descent -250
/Flags 32
/FontBBox [ -503 -312 1240 1026 ]
/FontName /Calibri
/ItalicAngle 0
/StemV 0
>>
endobj
xref
0 1
0000000000 65535 f
8 1
0000000497 00000 n
9 1
0000000755 00000 n
12 1
0000000009 00000 n
13 1
0000000060 00000 n
14 1
0000000146 00000 n
15 1
0000000252 00000 n
16 1
0000000370 00000 n
trailer
<<
/Size 7
/Root 12 0 R
>>
startxref
924
%%EOF

View File

@ -1827,6 +1827,12 @@
"link": false,
"type": "eq"
},
{ "id": "issue15443",
"file": "pdfs/issue15443.pdf",
"md5": "95a9e28b3f2754aa310f3379e01d781d",
"rounds": 1,
"type": "eq"
},
{ "id": "issue5946",
"file": "pdfs/issue5946.pdf",
"md5": "1217a3c8e2ee4ceb96d85a2f27e437b4",