[Pkg-javascript-commits] [pdf.js] 01/207: Prevent font error when no preferred cmap table is found (workaround for issue 4800)

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:22 UTC 2014


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

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

commit 3c5dedf60d772dae5b733b5e96dfe0a72bfac39c
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Sat May 24 11:29:52 2014 +0200

    Prevent font error when no preferred cmap table is found (workaround for issue 4800)
---
 src/core/fonts.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index 205fc95..1e18e23 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -2971,7 +2971,12 @@ var Font = (function FontClosure() {
 
         if (!potentialTable) {
           warn('Could not find a preferred cmap table.');
-          return [];
+          return {
+            platformId: -1,
+            encodingId: -1,
+            mappings: [],
+            hasShortCmap: false
+          };
         }
 
         font.pos = start + potentialTable.offset;

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