]> git.parisson.com Git - pdf.js.git/commitdiff
Still testing type1 charstring conversion
authorsbarman <sbarman@L3CWZ5T.(none)>
Tue, 16 Aug 2011 23:14:29 +0000 (16:14 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Tue, 16 Aug 2011 23:14:29 +0000 (16:14 -0700)
fonts.js

index e2f2785238279ede40acc75a0d1caa936a03da7b..77183a6024e88410e15d5dbcc76ee9cbf1733942 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -1488,8 +1488,9 @@ var Type1Parser = function() {
           // TODO Clean this code
           if (escape == 16) {
             var index = charstring.pop();
-//            var argc = charstring.pop();
-//            var data = charstring.pop();
+            var argc = charstring.pop();
+            for (var j = 0; j < argc; j++)
+              var data = charstring.pop();
 
             // If the flex mechanishm is not used in a font program, Adobe
             // state that that entries 0, 1 and 2 can simply be replace by
@@ -1501,8 +1502,8 @@ var Type1Parser = function() {
             // This is the same things about hint replacement, if it is not used
             // entry 3 can be replaced by {3}
             if (index == 3) {
-//              charstring.push(3);
-//              i++;
+              charstring.push(3);
+              i++;
               continue;
             }
           }