mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
Forgot to push function calls changes to get the unicode char from a random code
This commit is contained in:
parent
e21d7b3000
commit
3625ac93a3
1 changed files with 3 additions and 2 deletions
5
pdf.js
5
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue