ActivearkJWT / grunt-font-optimizer

Optimize TTF fonts with Grunt
MIT License
18 stars 5 forks source link

#4 content passed to sha1_hex needs to be encoded as UTF-8 #5

Closed btilford closed 9 years ago

btilford commented 9 years ago

This encodes the argument passed to the sh1_hash call as UTF-8 which prevents that call from throwing an exception. I believe there is still and issue where if $chars contains non UTF-8 characters they will not be removed from the font.

btilford commented 9 years ago

A library like utf8 could also be used to encode it before passing it off to Perl.