Browse Source

Skipping empty font tables

Yury Delendik 12 years ago
parent
commit
bbda42110b
  1. 3
      src/core/fonts.js
  2. 1
      test/pdfs/.gitignore
  3. BIN
      test/pdfs/issue1171.pdf
  4. 6
      test/test_manifest.json

3
src/core/fonts.js

@ -3672,6 +3672,9 @@ var Font = (function FontClosure() {
if (VALID_TABLES.indexOf(table.tag) < 0) { if (VALID_TABLES.indexOf(table.tag) < 0) {
continue; // skipping table if it's not a required or optional table continue; // skipping table if it's not a required or optional table
} }
if (table.length === 0) {
continue; // skipping empty tables
}
tables[table.tag] = table; tables[table.tag] = table;
} }

1
test/pdfs/.gitignore vendored

@ -31,6 +31,7 @@
!issue1905.pdf !issue1905.pdf
!rotated.pdf !rotated.pdf
!issue1249.pdf !issue1249.pdf
!issue1171.pdf
!smaskdim.pdf !smaskdim.pdf
!endchar.pdf !endchar.pdf
!type4psfunc.pdf !type4psfunc.pdf

BIN
test/pdfs/issue1171.pdf

Binary file not shown.

6
test/test_manifest.json

@ -1343,6 +1343,12 @@
"rounds": 1, "rounds": 1,
"type": "eq" "type": "eq"
}, },
{ "id": "issue1171.pdf",
"file": "pdfs/issue1171.pdf",
"md5": "2a6188a42a5874c7874b88eebd4acaf0",
"rounds": 1,
"type": "eq"
},
{ "id": "issue3521.pdf", { "id": "issue3521.pdf",
"file": "pdfs/issue3521.pdf", "file": "pdfs/issue3521.pdf",
"md5": "df95d31443e20a38efa29c3a635a045b", "md5": "df95d31443e20a38efa29c3a635a045b",

Loading…
Cancel
Save