mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Skipping empty font tables
This commit is contained in:
parent
b34c6a4e02
commit
bbda42110b
4 changed files with 10 additions and 0 deletions
|
@ -3672,6 +3672,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue