From: sbarman Date: Thu, 21 Jul 2011 21:02:31 +0000 (-0700) Subject: removed unnecessary call to parseEncoding X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5b43c25d5669ae94674797ff421987eeebb2a3f0;p=pdf.js.git removed unnecessary call to parseEncoding --- diff --git a/fonts.js b/fonts.js index 77ad85a..2e54ec3 100755 --- a/fonts.js +++ b/fonts.js @@ -2056,17 +2056,17 @@ var Type2CFF = (function() { baseDict = this.parseDict(privBytes); var privDict = this.getPrivDict(baseDict, strings); - var encoding = this.parseEncoding(topDict['Encoding']); +// var encoding = this.parseEncoding(topDict['Encoding']); var charStrings = this.parseIndex(topDict['CharStrings']); var charset = this.parseCharsets(topDict['charset'], charStrings.length, strings); // charstrings contains info about glyphs (one element per glyph // containing mappings for {unicode, width} - this.charstrings = this.getCharStrings(encoding, charset, charStrings, + this.charstrings = this.getCharStrings(charset, charStrings, privDict, this.properties); }, - getCharStrings: function cff_charstrings(encoding, charsets, charStrings, + getCharStrings: function cff_charstrings(charsets, charStrings, privDict, properties) { var widths = properties.glyphWidths;