diff --git a/glyphs/symbol-ascii.patel b/glyphs/symbol-ascii.patel index f994782..2cfced7 100644 --- a/glyphs/symbol-ascii.patel +++ b/glyphs/symbol-ascii.patel @@ -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 diff --git a/pass4-finalize.js b/pass4-finalize.js index c817f07..ba9a4db 100644 --- a/pass4-finalize.js +++ b/pass4-finalize.js @@ -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))); \ No newline at end of file