Refine names of dot variants (#927)

This commit is contained in:
be5invis 2021-06-23 22:53:41 -07:00
parent 90bcf7fff8
commit 205cb5958a
11 changed files with 45 additions and 40 deletions

View file

@ -79,6 +79,7 @@ class Prime {
this.tag = cfg.tag;
this.slopeDependent = !!cfg.slopeDependent;
this.variants = new Map();
this.hotChars = cfg.hotChars ? [...cfg.hotChars] : this.descSampleText;
for (const varKey in cfg.variants) {
const variant = cfg.variants[varKey];
this.variants.set(varKey, new PrimeVariant(varKey, cfg.tag, variant));
@ -100,6 +101,7 @@ class Prime {
slopeDependent: this.slopeDependent,
ligatureSampler: this.ligatureSampler,
descSampleText: this.descSampleText,
hotChars: this.hotChars,
variants: []
};
for (const variant of this.variants.values()) {