From 5b43c25d5669ae94674797ff421987eeebb2a3f0 Mon Sep 17 00:00:00 2001 From: sbarman Date: Thu, 21 Jul 2011 14:02:31 -0700 Subject: [PATCH] removed unnecessary call to parseEncoding --- fonts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fonts.js b/fonts.js index 77ad85a00..2e54ec391 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;