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

Merge pull request #1734 from yurydelendik/issue-1721

Adjust heuristic to properly handle unicode characters
This commit is contained in:
Brendan Dahl 2012-05-24 09:44:29 -07:00
commit e16a5c81d4
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) {