From 3ed6db69d031a56c54e23a6fe224c7142fe425fc Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Sun, 14 Oct 2012 17:52:14 -0500 Subject: [PATCH] Reducing parameter of Mac->Win heuristic --- src/fonts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fonts.js b/src/fonts.js index 17d847a8d..d8d38469f 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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;