mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #6697 from yurydelendik/type3loaderror
Set error font for Type3 if its loading failed.
This commit is contained in:
commit
a8279f7d60
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