1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

(#867) Set Type3 font encoding; enable text selection testing

This commit is contained in:
notmasteryet 2011-12-04 13:51:12 -06:00
parent 685a263e54
commit 3ea81bf0a6
2 changed files with 6 additions and 3 deletions

View file

@ -765,8 +765,10 @@ var Font = (function Font() {
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);
@ -2152,7 +2154,7 @@ var Font = (function Font() {
};
},
charsToGlyphs: function fonts_chars2Glyphs(chars) {
charsToGlyphs: function fonts_charsToGlyphs(chars) {
var charsCache = this.charsCache;
var glyphs;