Fixes number of glyphs in the generated font

Attempt to fix #4609