diff --git a/src/core/fonts.js b/src/core/fonts.js index 1bcb10f4c..1f904cdc2 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -3184,7 +3184,8 @@ var Font = (function FontClosure() { useTable = true; // Continue the loop since there still may be a higher priority // table. - } else if (platformId === 3 && encodingId === 1) { + } else if (platformId === 3 && encodingId === 1 && + (!isSymbolicFont || !potentialTable)) { useTable = true; if (!isSymbolicFont) { canBreak = true; diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 4ebc87711..03c71334a 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -29,6 +29,7 @@ !scan-bad.pdf !bug847420.pdf !bug860632.pdf +!bug894572.pdf !pdfjsbad1586.pdf !freeculture.pdf !pdfkit_compressed.pdf diff --git a/test/pdfs/bug894572.pdf b/test/pdfs/bug894572.pdf new file mode 100644 index 000000000..77e67141a Binary files /dev/null and b/test/pdfs/bug894572.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index b9ba288a9..9332d52ed 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -1106,6 +1106,13 @@ "lastPage": 1, "type": "eq" }, + { "id": "bug894572", + "file": "pdfs/bug894572.pdf", + "md5": "e54a6b0451939f685ed37e3d46e16158", + "rounds": 1, + "link": false, + "type": "eq" + }, { "id": "issue1466", "file": "pdfs/issue1466.pdf", "md5": "8a8877432e5bb10cfd50d60488d947bb",