Added metadata generation procedure.
This commit is contained in:
parent
89c3d4ecfe
commit
cd8f1b2302
9 changed files with 2603 additions and 2518 deletions
|
@ -1,5 +1,6 @@
|
|||
var fs = require('fs');
|
||||
var font = require('./font.js');
|
||||
var buildGlyphs = require('./buildglyphs.js');
|
||||
var parameters = require('./parameters');
|
||||
var TTFWriter = require('node-sfnt').TTFWriter;
|
||||
var TTF = require('node-sfnt').TTF;
|
||||
|
||||
|
@ -48,4 +49,7 @@ function writettf(ttf, file){
|
|||
fs.writeFileSync(file, toBuffer(buffer));
|
||||
}
|
||||
|
||||
fs.writeFileSync(process.argv[2], toBuffer(new TTFWriter(options).write(font.font)));
|
||||
var variant = process.argv[2]
|
||||
var outputPath = process.argv[3]
|
||||
|
||||
fs.writeFileSync(outputPath, toBuffer(new TTFWriter(options).write(buildGlyphs.build(parameters[variant]))));
|
Loading…
Add table
Add a link
Reference in a new issue