diff --git a/tasks/engines/fontforge/generate.py b/tasks/engines/fontforge/generate.py index 4403da5..7464eb7 100644 --- a/tasks/engines/fontforge/generate.py +++ b/tasks/engines/fontforge/generate.py @@ -74,6 +74,9 @@ def create_empty_char(f, c): if args['normalize']: glyph.left_side_bearing = glyph.right_side_bearing = 0 + elif name[1:] in args['zerowidth']: + glyph.left_side_bearing = glyph.right_side_bearing = 0 + glyph.width = 0 else: glyph.width = args['fontHeight'] diff --git a/tasks/webfonts.js b/tasks/webfonts.js index 5071025..d49ab92 100644 --- a/tasks/webfonts.js +++ b/tasks/webfonts.js @@ -141,6 +141,7 @@ module.exports = function webFonts(grunt) { ie7: options.ie7 === true, centerHorizontally: options.centerHorizontally === true, normalize: options.normalize === true, + zerowidth: options.zerowidth || [], round: options.round !== undefined ? options.round : 10e12, fontHeight: options.fontHeight !== undefined ? options.fontHeight : 512, descent: options.descent !== undefined ? options.descent : 64,