typefacedesign / document-driven-typedesign

Document Driven Typedesign
testmyfont.com
11 stars 3 forks source link

Choose + Review: Show all the glyphs, including unencoded #71

Open davelab6 opened 9 years ago

davelab6 commented 9 years ago

Following #63, use opentype.js to show all the glyphs that are unencoded.

This is more complicated and there are a few ways to do this; one is to use opentype.js to re-generate the font with these glyphs encoded; another is to use opentype.js to get the glyph data and draw it as SVG or canvas, as in http://nodebox.github.io/opentype.js/glyph-inspector.html

davelab6 commented 9 years ago

Actually a simple way to do this is to follow the idea in https://github.com/googlefonts/fontbakery/issues/388 - open the font file with opentype.js, then use F0000 + hex(GID) to cleanly, logically, encode all unencoded glyphs, and then regenerate a new font file, and feed it back to the browser, then show the glyphs in the page using their new encoding characters. Perhaps www.pluminjs.com can help with this.