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

@ -427,7 +427,7 @@ create-glyph 'percent' : glyph-construction
set-width WIDTH
assign-unicode '%'
local dotwidth ([adviceBlackness 4] * 1.5)
local cor : 1 / [Math.sqrt (1 - [Math.pow ((RIGHTSB - SB - STROKE) / (CAP - 0)) 2])]
local cor : CORRECTION_HX / [Math.sqrt (1 - [Math.pow ((RIGHTSB - SB - STROKE) / (CAP - 0)) 2])]
start-from SB 0
line-to (SB + STROKE * cor) 0

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)));