[Pkg-javascript-commits] [pdf.js] 06/161: Use default encoding for standard fonts without a 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 b187326022f3c8ba77d3ae8d5b426c6ada77ba38
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date:   Tue Feb 25 11:28:17 2014 -0800

    Use default encoding for standard fonts without a file.
---
 src/core/fonts.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index cbbf2bb..11fdc94 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -2216,6 +2216,13 @@ var Font = (function FontClosure() {
           }
           this.toFontChar[charCode] = fontChar;
         }
+      } else if (isStandardFont) {
+        this.toFontChar = [];
+        for (var charCode in properties.defaultEncoding) {
+          var glyphName = properties.differences[charCode] ||
+                          properties.defaultEncoding[charCode];
+          this.toFontChar[charCode] = GlyphsUnicode[glyphName];
+        }
       } 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