The /j looks MUCH better.
This commit is contained in:
parent
e181b1ae2d
commit
8e8c5d4d3a
7 changed files with 82 additions and 64 deletions
|
|
@ -30,7 +30,6 @@ ttfFont.glyf = [ttfFont.glyf[0]].concat(ttfFont.glyf.slice(1).sort(function(a, b
|
|||
else return (a.name > b.name ? 1 : a.name === b.name ? 0 : -1)
|
||||
}));
|
||||
|
||||
if(outputPath) fs.writeFileSync(outputPath, toBuffer(new TTFWriter(options).write(ttfFont)));
|
||||
if(argv.dumpmap) {
|
||||
fs.writeFileSync(argv.dumpmap, JSON.stringify(ttfFont.glyf.map(function(glyph){ return [glyph.name, glyph.unicode, glyph.advanceWidth === 0 && glyph.anchors && Object.keys(glyph.anchors).length > 0]})), 'utf8')
|
||||
};
|
||||
|
|
@ -58,4 +57,6 @@ if(argv.dumpfeature) {
|
|||
featurefile += '@GDEF_Simple = [' + gdef.simple.join(' \n') + '];\n@GDEF_Ligature =[' + gdef.ligature.join(' \n') + '];\n@GDEF_Mark = [' + gdef.mark.join(' \n') + '];\ntable GDEF { GlyphClassDef @GDEF_Simple, @GDEF_Ligature, @GDEF_Mark, ;} GDEF;'
|
||||
|
||||
fs.writeFileSync(argv.dumpfeature, featurefile, 'utf8');
|
||||
};
|
||||
};
|
||||
|
||||
if(outputPath) fs.writeFileSync(outputPath, toBuffer(new TTFWriter(options).write(ttfFont)));
|
||||
Loading…
Add table
Add a link
Reference in a new issue