Generate TTFAutohint control files for better glyph display for variant glyphs (#1963).

This commit is contained in:
be5invis 2023-08-27 21:48:13 -07:00
parent 6fed1572c1
commit 25ee0bcc50
9 changed files with 932 additions and 31 deletions

View file

@ -22,10 +22,13 @@ export default main;
async function main(argv) {
const paraT = await getParameters();
const para = paraT(argv);
const { font, glyphStore, cacheUpdated } = await buildFont(argv, para);
const { font, glyphStore, cacheUpdated, ttfaControls } = await buildFont(argv, para);
if (argv.oCharMap) {
await saveCharMap(argv, glyphStore);
}
if (argv.oTtfaControls) {
await fs.promises.writeFile(argv.oTtfaControls, ttfaControls.join("\n") + "\n");
}
if (argv.o) {
if (para.compatibilityLigatures) await buildCompatLigatures(para, font);
await saveTTF(argv.o, font);