From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 8 Sep 2011 11:03:30 +0000 (+0200) Subject: Remove a useless check in charsToUnicode X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=71d0f0d55c4584e2731a9f0e573c183a87f39ea9;p=pdf.js.git Remove a useless check in charsToUnicode --- diff --git a/fonts.js b/fonts.js index bfdbb0b..5622e84 100755 --- a/fonts.js +++ b/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);