Browse Source

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

notmasteryet 14 years ago
parent
commit
3ea81bf0a6
  1. 6
      src/fonts.js
  2. 3
      test/driver.js

6
src/fonts.js

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

3
test/driver.js

@ -167,7 +167,8 @@ function nextPage(task, loadError) { @@ -167,7 +167,8 @@ function nextPage(task, loadError) {
if (error)
failureMessage = 'render : ' + error.message;
snapshotCurrentPage(task, failureMessage);
}
},
true
);
} catch (e) {
failure = 'page setup : ' + e.toString();

Loading…
Cancel
Save