]> git.parisson.com Git - pdf.js.git/commitdiff
Fix the unicode symbols on the text layer
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 7 Dec 2011 04:59:06 +0000 (22:59 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 7 Dec 2011 04:59:06 +0000 (22:59 -0600)
src/fonts.js

index fd461bce59dccdb6fb1240afbb148a88f8a101e9..52174b1e7392b398d8de7a903ab2b7e43cc599ce 100644 (file)
@@ -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);