removed unnecessary call to parseEncoding
This commit is contained in:
parent
870027136a
commit
5b43c25d56
6
fonts.js
6
fonts.js
@ -2056,17 +2056,17 @@ var Type2CFF = (function() {
|
|||||||
baseDict = this.parseDict(privBytes);
|
baseDict = this.parseDict(privBytes);
|
||||||
var privDict = this.getPrivDict(baseDict, strings);
|
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 charStrings = this.parseIndex(topDict['CharStrings']);
|
||||||
var charset = this.parseCharsets(topDict['charset'], charStrings.length,
|
var charset = this.parseCharsets(topDict['charset'], charStrings.length,
|
||||||
strings);
|
strings);
|
||||||
|
|
||||||
// charstrings contains info about glyphs (one element per glyph
|
// charstrings contains info about glyphs (one element per glyph
|
||||||
// containing mappings for {unicode, width}
|
// containing mappings for {unicode, width}
|
||||||
this.charstrings = this.getCharStrings(encoding, charset, charStrings,
|
this.charstrings = this.getCharStrings(charset, charStrings,
|
||||||
privDict, this.properties);
|
privDict, this.properties);
|
||||||
},
|
},
|
||||||
getCharStrings: function cff_charstrings(encoding, charsets, charStrings,
|
getCharStrings: function cff_charstrings(charsets, charStrings,
|
||||||
privDict, properties) {
|
privDict, properties) {
|
||||||
var widths = properties.glyphWidths;
|
var widths = properties.glyphWidths;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user