Cleanup code for orthographic italics. Now variant selector could influence the upright and italic counterpart individually -- though currently they aren't.

This commit is contained in:
be5invis 2020-11-10 20:52:55 -08:00
parent 69b3c2aca9
commit 040c1ff08c
11 changed files with 161 additions and 292 deletions

View file

@ -119,8 +119,6 @@ class PrimeVariant {
this.description = cfg.description;
this.rank = cfg.rank;
this.selector = cfg.selector;
this.selectorUpright = cfg.selectorUpright;
this.selectorItalic = cfg.selectorItalic;
}
resolveFor(para, gn) {
let vs = {};
@ -129,11 +127,6 @@ class PrimeVariant {
}
resolve(para, vs) {
Object.assign(vs, this.selector);
if (para.isItalic) {
Object.assign(vs, this.selectorItalic);
} else {
Object.assign(vs, this.selectorUpright);
}
}
}