added Dummy DSIG.

This commit is contained in:
be5invis 2015-10-24 18:36:51 +08:00
parent aebe29b3ee
commit 20a38cb2e7
2 changed files with 5 additions and 1 deletions

View file

@ -46,4 +46,8 @@ ttf['OS/2'].sCapHeight = param.iosevka.cap
ttf['OS/2'].fsSelection |= (ttf['OS/2'].usWeightClass > 400 ? 1 << 5 : 0) | (ttf.post.italicAngle ? 1 : 0)
ttf.head.macStyle |= (ttf['OS/2'].usWeightClass > 400 ? 1 : 0) | (ttf.post.italicAngle ? 2 : 0)
ttf.post.isFixedPitch = 1 // mono
ttf.DSIG = { // add a dummy SDIG
name: 'DSIG',
content: [0, 1, 0, 0]
}
fs.writeFileSync(process.argv[3], toBuffer(new TTFWriter(options).write(ttf)));