Skip to content

Commit

Permalink
Add valid space glyph to avoid issues on IE11, this fixes issue FontC…
Browse files Browse the repository at this point in the history
  • Loading branch information
RoelN committed Mar 6, 2014
1 parent 6f07458 commit a2d0b4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fontcustom/scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down

0 comments on commit a2d0b4c

Please sign in to comment.