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

Merge pull request #2245 from yurydelendik/issue-1912

Fixes reading CFF with two .notdef in charset
This commit is contained in:
Brendan Dahl 2012-10-16 09:24:21 -07:00
commit c8cf4458c6
3 changed files with 10 additions and 3 deletions

View file

@ -5132,10 +5132,9 @@ var CFFFont = (function CFFFontClosure() {
inverseEncoding[encoding[charcode]] = charcode | 0;
else
inverseEncoding = charsets;
for (var i = 0, ii = charsets.length; i < ii; i++) {
var i = charsets[0] == '.notdef' ? 1 : 0;
for (var ii = charsets.length; i < ii; i++) {
var glyph = charsets[i];
if (glyph == '.notdef')
continue;
var code = inverseEncoding[i];
if (!code || isSpecialUnicode(code)) {