added Dummy DSIG.
This commit is contained in:
parent
aebe29b3ee
commit
20a38cb2e7
|
@ -427,7 +427,7 @@ create-glyph 'percent' : glyph-construction
|
||||||
set-width WIDTH
|
set-width WIDTH
|
||||||
assign-unicode '%'
|
assign-unicode '%'
|
||||||
local dotwidth ([adviceBlackness 4] * 1.5)
|
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
|
start-from SB 0
|
||||||
line-to (SB + STROKE * cor) 0
|
line-to (SB + STROKE * cor) 0
|
||||||
|
|
|
@ -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['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.head.macStyle |= (ttf['OS/2'].usWeightClass > 400 ? 1 : 0) | (ttf.post.italicAngle ? 2 : 0)
|
||||||
ttf.post.isFixedPitch = 1 // mono
|
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)));
|
fs.writeFileSync(process.argv[3], toBuffer(new TTFWriter(options).write(ttf)));
|
Loading…
Reference in New Issue
Block a user