Support slope-dependent digit form control (#724).

This commit is contained in:
be5invis 2020-11-12 03:47:42 -08:00
parent fa150fba6b
commit 1358f914a5
10 changed files with 32 additions and 19 deletions

View file

@ -8,7 +8,6 @@ function initPara(data, argv) {
apply(para, data, ["iosevka"]);
if (argv.shape.serifs) apply(para, data, ["serifs-" + argv.shape.serifs]);
if (argv.shape.spacing) apply(para, data, ["spacing-" + argv.shape.spacing]);
if (argv.shape.digitForm) apply(para, data, ["digit-form-" + argv.shape.digitForm]);
apply(para, data, ["shapeWeight"], { shapeWeight: argv.shape.weight });
apply(para, data, ["shapeWidth"], { shapeWidth: argv.shape.width });
apply(para, data, [`s-${argv.shape.slope}`]);