Set error font for Type3 if its loading failed.

This commit is contained in:
Yury Delendik 2015-11-27 13:05:51 -06:00
parent 83dbdc1e09
commit e4e69e2f05

View File

@ -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;