]> git.parisson.com Git - pdf.js.git/commitdiff
Forgot to push function calls changes to get the unicode char from a random code
authorVivien Nicolas <21@vingtetun.org>
Tue, 14 Jun 2011 17:40:36 +0000 (19:40 +0200)
committerVivien Nicolas <21@vingtetun.org>
Tue, 14 Jun 2011 17:40:36 +0000 (19:40 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index 1f42bd6d6ec0dac0bd8975506642516deefbec1d..bbfa7186a7af9cb50374a1974fa373588d0a0255 100644 (file)
--- 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);