diff --git a/src/core/evaluator.js b/src/core/evaluator.js index ab8fc66dc..e7705418f 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -2251,6 +2251,20 @@ class PartialEvaluator { function handleSetFont(fontName, fontRef) { return self .loadFont(fontName, fontRef, resources) + .then(function (translated) { + if (!translated.font.isType3Font) { + return translated; + } + return translated + .loadType3Data(self, resources, task) + .catch(function () { + // Ignore Type3-parsing errors, since we only use `loadType3Data` + // here to ensure that we'll always obtain a useful /FontBBox. + }) + .then(function () { + return translated; + }); + }) .then(function (translated) { textState.font = translated.font; textState.fontMatrix =