1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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;
}