Forgot to push function calls changes to get the unicode char from a random code

This commit is contained in:
Vivien Nicolas 2011-06-14 19:40:36 +02:00
parent e21d7b3000
commit 3625ac93a3

5
pdf.js
View File

@ -799,7 +799,7 @@ var Lexer = (function() {
}
}
x = Fonts.getUnicodeFor(x);
x = Fonts.unicodeFromCode(x);
str += String.fromCharCode(x);
break;
case '\r':
@ -815,7 +815,8 @@ var Lexer = (function() {
}
break;
default:
str += ch;
var unicode = Fonts.unicodeFromCode(ch.charCodeAt(0));
str += String.fromCharCode(unicode);
break;
}
} while (!done);