Remove dupes in cv decomposition
This commit is contained in:
parent
dd69cf9c89
commit
fa57b1a6f4
4 changed files with 49 additions and 32 deletions
|
@ -23,9 +23,15 @@ function ConvertGsubGposImpl(handlers, T, table, glyphs) {
|
|||
const ls = new LookupStore(handlers, glyphs);
|
||||
if (table.lookups) {
|
||||
if (table.lookupOrder) {
|
||||
for (const l of table.lookupOrder) ls.declare(l, table.lookups[l]);
|
||||
for (const l of table.lookupOrder) {
|
||||
if (!table.lookups[l]) throw new Error("Cannot find lookup " + l);
|
||||
ls.declare(l, table.lookups[l]);
|
||||
}
|
||||
}
|
||||
for (const l in table.lookups) {
|
||||
if (!table.lookups[l]) throw new Error("Cannot find lookup " + l);
|
||||
ls.declare(l, table.lookups[l]);
|
||||
}
|
||||
for (const l in table.lookups) ls.declare(l, table.lookups[l]);
|
||||
for (const l in table.lookups) ls.fill(l, table.lookups[l]);
|
||||
}
|
||||
const fs = new FeatureStore(ls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue