Add support for expression-style metric override. The old [metric-override.multiplies]
and [metric-override.adds]
are no longer supported (#1181).
This commit is contained in:
parent
51c0aadd77
commit
e49f4d2c8a
5 changed files with 282 additions and 58 deletions
|
@ -10,6 +10,7 @@ const Toml = require("@iarna/toml");
|
|||
|
||||
const { buildFont } = require("./gen/build-font.js");
|
||||
const Parameters = require("./support/parameters");
|
||||
const { applyMetricOverride } = require("./support/metric-override");
|
||||
const VariantData = require("./support/variant-data");
|
||||
const { applyLigationData } = require("./support/ligation-data");
|
||||
const { createGrDisplaySheet } = require("./support/gr");
|
||||
|
@ -49,7 +50,7 @@ async function getParameters() {
|
|||
|
||||
if (argv.excludedCharRanges) para.excludedCharRanges = argv.excludedCharRanges;
|
||||
if (argv.compatibilityLigatures) para.compLig = argv.compatibilityLigatures;
|
||||
if (argv.metricOverride) Parameters.applyMetricOverride(para, argv.metricOverride);
|
||||
if (argv.metricOverride) applyMetricOverride(para, argv.metricOverride, argv);
|
||||
|
||||
para.naming = {
|
||||
...para.naming,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue