Workshape / icon-font-generator

Easy-to-use, pre-configured cli tool to generate webfont icon kits from a bunch of .svg files
MIT License
471 stars 76 forks source link

"Could no decode font downloaded" Console error, if one of the fonts is in different encoding than the other icons. #58

Open Shenato opened 5 years ago

Shenato commented 5 years ago

I have a repo of icons we use at work, and most of them were encoded in iso-8859-1, but then when we got some new icons, the generated font wasn't decodable by the browser. It took me a long time until i figured out it was because the new icons had utf-8 encoding.

This was a pain to figure out because there's no info online anywhere about this or in the script repo (as far as i've seen) and the script doesn't complain about it.

I have a few suggestions to not let future users of this script encounter this problem: