Skip to content

Commit

Permalink
Merge pull request #190 from RoelN/master
Browse files Browse the repository at this point in the history
Add valid space glyph to avoid issues on IE11, this fixes issue #176
  • Loading branch information
kaizau committed Feb 2, 2015
2 parents 7bfc857 + a2d0b4c commit 99b209f
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 @@ -79,6 +79,10 @@ def createGlyph( name, source, code ):
glyph.left_side_bearing = glyph.left_side_bearing - shift
glyph.right_side_bearing = glyph.right_side_bearing + shift

# 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 99b209f

Please sign in to comment.