mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
Fix the unicode symbols on the text layer
This commit is contained in:
parent
9eae90a1ba
commit
9234c315d5
1 changed files with 2 additions and 1 deletions
|
@ -2142,7 +2142,8 @@ var Font = (function Font() {
|
|||
break;
|
||||
}
|
||||
|
||||
var unicodeChars = this.toUnicode ? this.toUnicode[charcode] : charcode;
|
||||
var unicodeChars = !('toUnicode' in this) ? charcode :
|
||||
this.toUnicode[charcode] || charcode;
|
||||
if (typeof unicodeChars === 'number')
|
||||
unicodeChars = String.fromCharCode(unicodeChars);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue