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

Add a ref test for setting disableFontFace to true

This commit is contained in:
Calixte Denizet 2024-12-08 16:06:25 +01:00
parent 23c42f891b
commit f6662d3f7c
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"
}
]