Add support code for glyph name export -- not enabled for now

This commit is contained in:
be5invis 2021-05-30 18:56:31 -07:00
parent b7e7752109
commit 35fa24274d
2 changed files with 39 additions and 7 deletions

View file

@ -3,7 +3,7 @@
const { Ot } = require("ot-builder");
module.exports = function () {
var font = {
let font = {
head: new Ot.Head.Table(),
hhea: new Ot.MetricHead.Hhea(),
os2: new Ot.Os2.Table(4),
@ -12,7 +12,7 @@ module.exports = function () {
name: new Ot.Name.Table()
};
if (process.env.SOURCE_DATE_EPOCH) {
font.head.created = new Date(process.env.SOURCE_DATE_EPOCH * 1000);
font.head.created = new Date(process.env.SOURCE_DATE_EPOCH * 1000);
font.head.modified = new Date(process.env.SOURCE_DATE_EPOCH * 1000);
}
return font;