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 6a6753fd5e
commit 6364e7fad5

5
pdf.js
View File

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