[Pkg-javascript-commits] [pdf.js] 05/161: Remove isFixedPitch check for now.

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 f7fea015a905c8b01861a5baab25b7503b9d49b8
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date:   Mon Feb 24 17:39:51 2014 -0800

    Remove isFixedPitch check for now.
---
 src/core/fonts.js | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index de2277f..cbbf2bb 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -3970,14 +3970,6 @@ var Font = (function FontClosure() {
     },
 
     convert: function Font_convert(fontName, font, properties) {
-      function isFixedPitch(glyphs) {
-        for (var i = 0, ii = glyphs.length - 1; i < ii; i++) {
-          if (glyphs[i] != glyphs[i + 1])
-            return false;
-        }
-        return true;
-      }
-
       // The offsets object holds at the same time a representation of where
       // to write the table entry information about a table and another offset
       // representing the offset where to draw the actual data of a particular
@@ -3991,7 +3983,8 @@ var Font = (function FontClosure() {
 
       createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
 
-      properties.fixedPitch = false; //isFixedPitch(charstrings);
+      // TODO: Check the charstring widths to determine this.
+      properties.fixedPitch = false;
 
       var mapping = font.getGlyphMapping(properties);
       var newMapping = adjustMapping(mapping, properties);

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