There is a gem for generate font icon. It is fontcustom. The link: https://github.com/FontCustom/fontcustom
Example projects:
https://content.pivotal.io/blog/generate-icon-fonts-automatically-with-fontcustom https://github.com/wardpenney/pivotal-blog-example-fontcustom