Ligation builder cleanup

This commit is contained in:
be5invis 2023-02-19 20:32:28 -08:00
parent d9c770caee
commit 5392963db4
3 changed files with 189 additions and 157 deletions

View file

@ -24,12 +24,12 @@ function ConvertGsubGposImpl(handlers, T, table, glyphs) {
if (table.lookups) {
if (table.lookupOrder) {
for (const l of table.lookupOrder) {
if (!table.lookups[l]) throw new Error("Cannot find lookup " + l);
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);
if (!table.lookups[l]) throw new Error(`Cannot find lookup '${l}'`);
ls.declare(l, table.lookups[l]);
}
for (const l in table.lookups) ls.fill(l, table.lookups[l]);