this.fontMatrix = properties.fontMatrix;
this.widthMultiplier = 1.0;
- if (properties.type == 'Type3')
+ if (properties.type == 'Type3') {
+ this.encoding = properties.baseEncoding;
return;
+ }
// Trying to fix encoding using glyph CIDSystemInfo.
this.loadCidToUnicode(properties);
};
},
- charsToGlyphs: function fonts_chars2Glyphs(chars) {
+ charsToGlyphs: function fonts_charsToGlyphs(chars) {
var charsCache = this.charsCache;
var glyphs;
if (error)
failureMessage = 'render : ' + error.message;
snapshotCurrentPage(task, failureMessage);
- }
+ },
+ true
);
} catch (e) {
failure = 'page setup : ' + e.toString();