From 8acc31ec83f424fafc54133abfa94c8867fbb02c Mon Sep 17 00:00:00 2001
From: sbarman <sbarman@L3CWZ5T.(none)>
Date: Tue, 16 Aug 2011 16:14:29 -0700
Subject: [PATCH] Still testing type1 charstring conversion

---
 fonts.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/fonts.js b/fonts.js
index e2f278523..77183a602 100755
--- 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;
             }
           }