]> git.parisson.com Git - pdf.js.git/commitdiff
(#906) fixing glyph width defined by glyph name
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 8 Dec 2011 05:30:48 +0000 (23:30 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 8 Dec 2011 05:30:48 +0000 (23:30 -0600)
src/fonts.js
test/pdfs/bpl13210.pdf.link [new file with mode: 0644]
test/test_manifest.json

index 1a4366c198dcb4dae6ac1f149f7ba0385d5d7a0e..2343f530c8ea78a82b373424d30d99cbbf352ec8 100644 (file)
@@ -2102,9 +2102,9 @@ var Font = (function Font() {
           break;
         case 'Type1':
           var glyphName = this.differences[charcode] || this.encoding[charcode];
+          if (!isNum(width))
+            width = this.widths[glyphName];
           if (this.noUnicodeAdaptation) {
-            if (!isNum(width))
-              width = this.widths[glyphName];
             unicode = GlyphsUnicode[glyphName] || charcode;
             break;
           }
diff --git a/test/pdfs/bpl13210.pdf.link b/test/pdfs/bpl13210.pdf.link
new file mode 100644 (file)
index 0000000..7cde56a
--- /dev/null
@@ -0,0 +1 @@
+http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf
index bd50068f7ba17c6e0acc98d575a7152b30b9a713..31cd8e0a196561460c504081ce26220c8848944b 100644 (file)
        "rounds": 1,
        "type": "eq"
     },
+    {  "id": "bpl13210",
+       "file": "pdfs/bpl13210.pdf",
+       "md5": "8a08512baa9fa95378d9ad4b995947c7",
+       "link": true,
+       "pageLimit": 5,
+       "rounds": 1,
+       "type": "eq"
+    },
     {  "id": "tutorial",
        "file": "pdfs/tutorial.pdf",
        "md5": "6e122f618c27f3aa9a689423e3be6b8d",