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

Merge pull request #13517 from calixteman/liberation

XFA - Add Liberation-Sans font as a substitution for some missing fonts
This commit is contained in:
calixteman 2021-06-09 18:19:07 +02:00 committed by GitHub
commit 6d88d8cdaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 2453 additions and 54 deletions

View file

@ -0,0 +1 @@
https://web.archive.org/web/20201111224144/https://www.canada.ca/content/dam/ircc/migration/ircc/english/pdf/kits/forms/imm1344e.pdf

View file

@ -2732,7 +2732,7 @@
"md5": "bc530d90984ddaa2cc7e0cd53fc2cf34",
"rounds": 1,
"type": "eq"
},
},
{ "id": "hsbc",
"file": "pdfs/hsbc.pdf",
"md5": "34a63a9ed9cdf3790562a3dfd1703e48",
@ -2741,6 +2741,14 @@
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_imm1344e",
"file": "pdfs/xfa_imm1344e.pdf",
"md5": "f9b8b6e7d385691efdea2544576f5eb2",
"rounds": 1,
"link": true,
"enableXfa": true,
"type": "eq"
},
{ "id": "issue7580-text",
"file": "pdfs/issue7580.pdf",
"md5": "44dd5a9b4373fcab9890cf567722a766",

View file

@ -97,7 +97,7 @@ describe("XFAFactory", function () {
]);
expect(draw.attributes.style).toEqual({
color: "#0c1722",
fontFamily: "FooBar",
fontFamily: '"FooBar","FooBar-PdfJS-XFA"',
fontSize: "6.93px",
margin: "1px 4px 2px 3px",
verticalAlign: "2px",