Set error font for Type3 if its loading failed.
This commit is contained in:
parent
83dbdc1e09
commit
e4e69e2f05
@ -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…
Reference in New Issue
Block a user