mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Remove a useless check in charsToUnicode
This commit is contained in:
parent
a7ef696fea
commit
71d0f0d55c
1 changed files with 0 additions and 5 deletions
5
fonts.js
5
fonts.js
|
@ -444,7 +444,6 @@ var Font = (function Font() {
|
|||
var constructor = function font_constructor(name, file, properties) {
|
||||
this.name = name;
|
||||
this.encoding = properties.encoding;
|
||||
this.glyphs = properties.glyphs;
|
||||
this.sizes = [];
|
||||
|
||||
var names = name.split("+");
|
||||
|
@ -1368,10 +1367,6 @@ var Font = (function Font() {
|
|||
unicode = charcode;
|
||||
}
|
||||
|
||||
// Check if the glyph has already been converted
|
||||
if (!IsNum(unicode))
|
||||
unicode = encoding[charcode].unicode = this.glyphs[unicode].unicode;
|
||||
|
||||
// Handle surrogate pairs
|
||||
if (unicode > 0xFFFF) {
|
||||
str += String.fromCharCode(unicode & 0xFFFF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue