[Pkg-javascript-commits] [pdf.js] 04/161: Fix symbol fonts with no file.

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:16 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 f1c73edac42ef0ccd7fefd2c55fe6241b2a18721
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date:   Tue Feb 11 13:37:12 2014 -0800

    Fix symbol fonts with no file.
---
 src/core/fonts.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index e6bf1f6..de2277f 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -2207,6 +2207,15 @@ var Font = (function FontClosure() {
         }
         this.toFontChar = map;
         this.toUnicode = map;
+      } else if (/Symbol/i.test(fontName)) {
+        var symbols = Encodings.SymbolSetEncoding;
+        for (var charCode in symbols) {
+          var fontChar = GlyphsUnicode[symbols[charCode]];
+          if (!fontChar) {
+            continue;
+          }
+          this.toFontChar[charCode] = fontChar;
+        }
       } else {
         for (var charCode in this.toUnicode) {
           this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);

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