Hacker News new | ask | show | jobs
by zxcvgm 4400 days ago
I had that same question some time ago. I found that Google uses Python bindings[1] for fontforge, but it had that dependency on fontforge. So I opted for a Python-based solution called fonttools[2] instead, and it works pretty well. It comes with a utility called pyftsubset which you can use like so:

    pyftsubset FontAwesome.otf U+f0{2c,9e,99}
This creates a file called FontAwesome.otf.subset that has the selected glyphs. The FontAwesome site has the Unicode value on each icon page.

[1] https://code.google.com/p/googlefontdirectory/source/browse/...

[2] https://github.com/behdad/fonttools/