icon-font-generator icon indicating copy to clipboard operation
icon-font-generator copied to clipboard

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

Open Shenato opened this issue 6 years ago • 0 comments

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:

  • Can the script detect the encoding of an icon and warn you/throw an error.
  • Or can we include this in some kind Wiki/FAQ/ Common problems Section?

Shenato avatar Apr 02 '19 07:04 Shenato