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

Merge pull request #19197 from calixteman/test_disableFontFace

Add a ref test for setting disableFontFace to true
This commit is contained in:
calixteman 2024-12-08 16:17:42 +01:00 committed by GitHub
commit 6177bb5aa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -624,6 +624,7 @@ class Driver {
}
const isOffscreenCanvasSupported =
task.isOffscreenCanvasSupported === false ? false : undefined;
const disableFontFace = task.disableFontFace === true;
const loadingTask = getDocument({
url: new URL(task.file, window.location),
@ -637,6 +638,7 @@ class Driver {
enableXfa: task.enableXfa,
isOffscreenCanvasSupported,
styleElement: xfaStyleElement,
disableFontFace,
});
let promise = loadingTask.promise;

View file

@ -11208,5 +11208,13 @@
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
"rounds": 1,
"type": "eq"
},
{
"id": "tracemonkey-disableFontFace-eq",
"file": "pdfs/tracemonkey.pdf",
"md5": "9a192d8b1a7dc652a19835f6f08098bd",
"rounds": 1,
"disableFontFace": true,
"type": "eq"
}
]