Merge pull request #3877 from yurydelendik/issue1171

Skipping empty font tables
This commit is contained in:
Brendan Dahl 2013-11-08 09:12:04 -08:00
commit e076eeb5bd
4 changed files with 10 additions and 0 deletions

View File

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

View File

@ -33,6 +33,7 @@
!issue2833.pdf
!rotated.pdf
!issue1249.pdf
!issue1171.pdf
!smaskdim.pdf
!endchar.pdf
!type4psfunc.pdf

BIN
test/pdfs/issue1171.pdf Normal file

Binary file not shown.

View File

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