From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 14 Jun 2011 17:40:36 +0000 (+0200) Subject: Forgot to push function calls changes to get the unicode char from a random code X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6364e7fad5a12ecaa280807d1f793f0118d2ec6d;p=pdf.js.git Forgot to push function calls changes to get the unicode char from a random code --- diff --git a/pdf.js b/pdf.js index 1f42bd6..bbfa718 100644 --- a/pdf.js +++ b/pdf.js @@ -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);