]> git.parisson.com Git - pdf.js.git/commitdiff
Changing glyphNameMap and GlyphUnicode lookup order
authornotmasteryet <async.processingjs@yahoo.com>
Sat, 21 Jan 2012 23:18:36 +0000 (17:18 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Sat, 21 Jan 2012 23:18:36 +0000 (17:18 -0600)
src/fonts.js
test/pdfs/issue1096.pdf.link [new file with mode: 0644]
test/test_manifest.json

index f96c15458518c28f2d2af84a438781f4743d2458..adcedd55c75d4cef14568dd0553d213e9e4a4ec5 100644 (file)
@@ -2235,9 +2235,8 @@ var Font = (function FontClosure() {
           }
 
           // MacRoman encoding address by re-encoding the cmap table
-          unicode = glyphName in GlyphsUnicode ?
-            GlyphsUnicode[glyphName] :
-            this.glyphNameMap[glyphName];
+          unicode = glyphName in this.glyphNameMap ?
+            this.glyphNameMap[glyphName] : GlyphsUnicode[glyphName];
           break;
         default:
           warn('Unsupported font type: ' + this.type);
diff --git a/test/pdfs/issue1096.pdf.link b/test/pdfs/issue1096.pdf.link
new file mode 100644 (file)
index 0000000..aa07f14
--- /dev/null
@@ -0,0 +1 @@
+http://www.faithaliveresources.org/Content/Site135/FilesSamples/105315400440pdf_00000009843.pdf
index 5bc344abfa4231065d500a3e971451efd65e6c96..648d1b49b0b4ed1dbf47b64a8b12e75f709d1064 100644 (file)
       "link": true,
       "type": "eq"
     },
+    {  "id": "issue1096",
+      "file": "pdfs/issue1096.pdf",
+      "md5": "7f75d2b4b93c78d401ff39e8c1b00612",
+      "rounds": 1,
+      "pageLimit": 10,
+      "link": true,
+      "type": "eq"
+    },
     {  "id": "liveprogramming",
       "file": "pdfs/liveprogramming.pdf",
       "md5": "7bd4dad1188232ef597d36fd72c33e52",