Merge pull request #9313 from Snuffleupagus/issue-9291

Add a fallback for non-embedded LucidaSans-Demi fonts (issue 9291)
This commit is contained in:
Tim van der Meij 2017-12-24 20:06:38 +01:00 committed by GitHub
commit fe30d4d468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 98 additions and 0 deletions

View File

@ -99,6 +99,7 @@ var getNonStdFontMap = getLookupTableFactory(function (t) {
t['LucidaConsole-Bold'] = 'Courier-Bold';
t['LucidaConsole-BoldItalic'] = 'Courier-BoldOblique';
t['LucidaConsole-Italic'] = 'Courier-Oblique';
t['LucidaSans-Demi'] = 'Helvetica-Bold';
t['MS-Gothic'] = 'MS Gothic';
t['MS-Gothic-Bold'] = 'MS Gothic-Bold';
t['MS-Gothic-BoldItalic'] = 'MS Gothic-BoldItalic';

View File

@ -65,6 +65,7 @@
!issue8823.pdf
!issue9084.pdf
!issue9105_reduced.pdf
!issue9291.pdf
!bad-PageLabels.pdf
!filled-background.pdf
!ArabicCIDTrueType.pdf

89
test/pdfs/issue9291.pdf Normal file
View File

@ -0,0 +1,89 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<<
/FontName /LucidaSans-Demi
/StemV 144
/Ascent 1232
/Flags 32
/FontWeight 700
/FontFamily (Lucida Sans)
/XHeight 536
/FontStretch /Normal
/Descent -793
/ItalicAngle 0
/FontBBox [-779 -793 1665 1232]
/Type /FontDescriptor
/CapHeight 723
>>
endobj
2 0 obj
<<
/Pages 3 0 R
/Type /Catalog
>>
endobj
3 0 obj
<<
/Kids [4 0 R]
/Type /Pages
/Count 1
>>
endobj
4 0 obj
<<
/Parent 3 0 R
/MediaBox [0 0 500 50]
/Resources
<<
/Font
<<
/F1 5 0 R
>>
>>
/Type /Page
/Contents 6 0 R
>>
endobj
5 0 obj
<<
/BaseFont /LucidaSans-Demi
/LastChar 255
/Subtype /TrueType
/FontDescriptor 1 0 R
/Widths [750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 330 313 452 660 660 783 745 247 371 371 466 795 247 639 247 565 660 660 660 660 660 660 660 660 660 660 247 247 795 795 795 497 844 736 630 712 793 601 574 746 780 332 418 710 582 908 769 823 613 824 690 571 690 736 699 904 667 687 645 371 565 371 660 500 639 588 663 532 663 586 415 660 657 325 333 633 325 970 657 639 663 663 455 565 405 657 593 863 591 583 591 371 386 371 795 624 660 624 247 660 452 1000 660 660 639 1163 571 346 1059 624 645 624 624 247 247 452 452 624 500 1000 639 861 565 346 960 624 591 687 330 313 660 660 660 660 386 660 639 840 482 569 795 639 639 500 434 795 482 482 639 693 660 639 639 482 482 569 950 950 950 497 736 736 736 736 736 736 958 712 601 601 601 601 332 332 332 332 793 769 823 823 823 823 823 795 823 736 736 736 736 687 613 661 588 588 588 588 588 588 883 532 586 586 586 586 325 325 325 325 640 657 639 639 639 639 639 795 639 657 657 657 657 583 663 583]
/Encoding /WinAnsiEncoding
/Type /Font
/FirstChar 0
>>
endobj
6 0 obj
<<
/Length 76
>>
stream
BT
10 20 TD
/F1 18 Tf
(Non-embedded LucidaSans-Demi, should be bold.) Tj
ET
endstream
endobj xref
0 7
0000000000 65535 f
0000000015 00000 n
0000000273 00000 n
0000000324 00000 n
0000000383 00000 n
0000000512 00000 n
0000001707 00000 n
trailer
<<
/Root 2 0 R
/Size 7
>>
startxref
1835
%%EOF

View File

@ -2264,6 +2264,13 @@
"link": true,
"type": "eq"
},
{ "id": "issue9291",
"file": "pdfs/issue9291.pdf",
"md5": "8c3f4edff54c1ca0b67700a05ea0ccee",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue5751",
"file": "pdfs/issue5751.pdf",
"md5": "9334a52dc85747f1e3422767e0cd3ee9",