]> git.parisson.com Git - pdf.js.git/commitdiff
Fixes type2 fonts conversion (#940)
authornotmasteryet <async.processingjs@yahoo.com>
Mon, 16 Jan 2012 20:13:38 +0000 (14:13 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Mon, 16 Jan 2012 20:13:38 +0000 (14:13 -0600)
src/fonts.js

index 329d7ad776885ee8a3ef31805b69023bf4b431c4..571788545039cf8fc6cbe32276f0a12d4ca578da 100644 (file)
@@ -3324,15 +3324,9 @@ var Type2CFF = (function Type2CFFClosure() {
         inverseEncoding[encoding[charcode]] = charcode | 0;
       for (var i = 0, ii = charsets.length; i < ii; i++) {
         var glyph = charsets[i];
-        if (glyph == '.notdef') {
-          charstrings.push({
-            unicode: 0,
-            code: 0,
-            gid: i,
-            glyph: glyph
-          });
+        if (glyph == '.notdef')
           continue;
-        }
+
         var code = inverseEncoding[i];
         if (!code || isSpecialUnicode(code)) {
           unassignedUnicodeItems.push(i);