Generate TTFAutohint control files for better glyph display for variant glyphs (#1963).
This commit is contained in:
parent
6fed1572c1
commit
25ee0bcc50
9 changed files with 932 additions and 31 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue