[Pkg-javascript-commits] [pdf.js] 62/115: Set error font for Type3 if its loading failed.

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit e4e69e2f056f20262552cb81c97f53d3b85ffaf1
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Fri Nov 27 13:05:51 2015 -0600

    Set error font for Type3 if its loading failed.
---
 src/core/evaluator.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/core/evaluator.js b/src/core/evaluator.js
index 2008775..20b0daa 100644
--- a/src/core/evaluator.js
+++ b/src/core/evaluator.js
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list