mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Ensure fonts loaded in caes you load fonts out of line
This commit is contained in:
parent
9e84dd35b6
commit
845230d8b0
1 changed files with 6 additions and 4 deletions
10
pdf.js
10
pdf.js
|
@ -4349,13 +4349,15 @@ var PartialEvaluator = (function() {
|
|||
font.translated.file,
|
||||
font.translated.properties
|
||||
]);
|
||||
|
||||
// Ensure the font is ready before the font is set
|
||||
// and later on used for drawing.
|
||||
insertDependency([loadedName]);
|
||||
}
|
||||
}
|
||||
args[0].name = font.translated.properties.loadedName;
|
||||
|
||||
// Ensure the font is ready before the font is set
|
||||
// and later on used for drawing.
|
||||
// TODO: This should get insert to the IRQueue only once per
|
||||
// page.
|
||||
insertDependency([font.translated.properties.loadedName]);
|
||||
} else {
|
||||
// TODO: TOASK: Is it possible to get here? If so, what does
|
||||
// args[0].name should be like???
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue