Optimize spacing variants' building

This commit is contained in:
be5invis 2022-09-15 18:50:29 -07:00
parent b7a59ee481
commit 12a4f1edb1
14 changed files with 775 additions and 372 deletions

View file

@ -1,17 +0,0 @@
import { Ot } from "ot-builder";
export function CreateEmptyFont(argv) {
let font = {
head: new Ot.Head.Table(),
hhea: new Ot.MetricHead.Hhea(),
os2: new Ot.Os2.Table(4),
post: new Ot.Post.Table(argv.featureControl.exportGlyphNames ? 2 : 3, 0),
maxp: Ot.Maxp.Table.TrueType(),
name: new Ot.Name.Table()
};
if (process.env.SOURCE_DATE_EPOCH) {
font.head.created = new Date(process.env.SOURCE_DATE_EPOCH * 1000);
font.head.modified = new Date(process.env.SOURCE_DATE_EPOCH * 1000);
}
return font;
}