diff --git a/index.js b/index.js index 38cb98b..fc8b704 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ const NodeType = {}; NodeType.TEXT_NODE = 3; async function main() { - fontName = process.argv[2] || 'OperatorMono-MediumItalic'; + fontName = process.argv[2]; ligFontName = fontName.split('-').join('Lig-'); const srcFileName = `./original/${fontName}.ttx`; @@ -31,7 +31,6 @@ async function main() { await processPatch('lookup', patchLookup, dom); await processPatch('charstrings', patchCharStrings, dom); - //return; console.log(`Writing ligature font file ${dstFileName}`); await fs.writeFileAsync(dstFileName, format(serialize(dom))); console.log('Done');