1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 23:58:07 +02:00

Adjust heuristic to properly handle unicode characters

This commit is contained in:
Yury Delendik 2012-05-21 22:15:09 -05:00
parent 5ac7513fa3
commit 6971aec9f3
3 changed files with 12 additions and 2 deletions

View file

@ -611,8 +611,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
} else if (octet == 0x3E) {
if (token.length) {
// XXX guessing chars size by checking number size in the CMap
if (token.length <= 2 && properties.composite)
// Heuristic: guessing chars size by checking numbers sizes
// in the CMap entries.
if (token.length == 2 && properties.composite)
properties.wideChars = false;
if (token.length <= 4) {