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

Reducing parameter of Mac->Win heuristic

This commit is contained in:
Yury Delendik 2012-10-14 17:52:14 -05:00
parent 969a2010b2
commit 3ed6db69d0

View file

@ -3462,9 +3462,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;