mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Set error font for Type3 if its loading failed.
This commit is contained in:
parent
83dbdc1e09
commit
e4e69e2f05
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
return translated.loadType3Data(self, resources, operatorList, task).
|
||||
then(function () {
|
||||
return translated;
|
||||
}, function (reason) {
|
||||
return new TranslatedFont('g_font_error',
|
||||
new ErrorFont('Type3 font load error: ' + reason), translated.font);
|
||||
});
|
||||
}).then(function (translated) {
|
||||
state.font = translated.font;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue