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).
|
return translated.loadType3Data(self, resources, operatorList, task).
|
||||||
then(function () {
|
then(function () {
|
||||||
return translated;
|
return translated;
|
||||||
|
}, function (reason) {
|
||||||
|
return new TranslatedFont('g_font_error',
|
||||||
|
new ErrorFont('Type3 font load error: ' + reason), translated.font);
|
||||||
});
|
});
|
||||||
}).then(function (translated) {
|
}).then(function (translated) {
|
||||||
state.font = translated.font;
|
state.font = translated.font;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user