]> git.parisson.com Git - pdf.js.git/commitdiff
Remove a useless check in charsToUnicode
authorVivien Nicolas <21@vingtetun.org>
Thu, 8 Sep 2011 11:03:30 +0000 (13:03 +0200)
committerVivien Nicolas <21@vingtetun.org>
Thu, 8 Sep 2011 11:03:30 +0000 (13:03 +0200)
fonts.js

index bfdbb0b4ad41c05623defe397c0d1b1cb43d575d..5622e84e49a13e9e6813d3658a1d09c0aa11b3df 100755 (executable)
--- 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);