From: sbarman Date: Wed, 17 Aug 2011 22:55:09 +0000 (-0700) Subject: working font X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c9f9b8b1935128d9e159db155f4ac7361c7e5c6b;p=pdf.js.git working font --- diff --git a/fonts.js b/fonts.js index 77183a6..a55fc63 100755 --- a/fonts.js +++ b/fonts.js @@ -1490,7 +1490,7 @@ var Type1Parser = function() { var index = charstring.pop(); var argc = charstring.pop(); for (var j = 0; j < argc; j++) - var data = charstring.pop(); + charstring.push('drop'); // 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 @@ -1976,6 +1976,8 @@ CFF.prototype = { 'sub': [12, 11], 'div': [12, 12], 'pop': [1, 12, 18], +// 'pop': [], + 'drop' : [12, 18], 'endchar': 14, 'rmoveto': 21, 'hmoveto': 22,