Browse Source

Merge pull request #2249 from yurydelendik/issue-2234

Reducing parameter of Mac->Win heuristic
Brendan Dahl 13 years ago
parent
commit
ece9cd15d2
  1. 4
      src/fonts.js

4
src/fonts.js

@ -3471,9 +3471,9 @@ var Font = (function FontClosure() { @@ -3471,9 +3471,9 @@ var Font = (function FontClosure() {
this.isSymbolicFont = false;
}
// heuristics: if removed more than 10 glyphs encoding WinAnsiEncoding
// heuristics: if removed more than 5 glyphs encoding WinAnsiEncoding
// does not set properly (broken PDFs have about 100 removed glyphs)
if (glyphsRemoved > 10) {
if (glyphsRemoved > 5) {
warn('Switching TrueType encoding to MacRomanEncoding for ' +
this.name + ' font');
encoding = Encodings.MacRomanEncoding;

Loading…
Cancel
Save