From a2d0b4c29573dffe45aa215050d46dbe201423a6 Mon Sep 17 00:00:00 2001 From: RoelN Date: Thu, 6 Mar 2014 14:00:46 +0100 Subject: [PATCH] Add valid space glyph to avoid issues on IE11, this fixes issue #176 --- lib/fontcustom/scripts/generate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/fontcustom/scripts/generate.py b/lib/fontcustom/scripts/generate.py index 0d441332..ab0d7acb 100755 --- a/lib/fontcustom/scripts/generate.py +++ b/lib/fontcustom/scripts/generate.py @@ -75,6 +75,10 @@ def createGlyph( name, source, code ): else: glyph.width = 512 +# Add valid space glyph to avoid "unknown character" box on IE11 +glyph = font.createChar(32) +glyph.width = 200 + for glyph, data in manifest['glyphs'].iteritems(): name = createGlyph(glyph, data['source'], data['codepoint'])