arniu / react-native-ionicons

Ionic icons for React Native
MIT License
42 stars 11 forks source link

swapped to v5.0.0 font file #17

Closed JacksonLaw closed 4 years ago

JacksonLaw commented 4 years ago

changed the file over -- It looks like all the fonts worked. I used https://github.com/FontCustom/fontcustom to convert the svg files ( https://github.com/ionic-team/ionicons/tree/master/src/svg ) to a .tff file.

arniu commented 4 years ago

Nick catch!

According to ionicons v5 changelog, many icons have changed their names. As a result, the generated file glyph/map.json should be updated too.

Can you give a try, with a script ?

arniu commented 4 years ago

NPM has a svg2ttf.

JacksonLaw commented 4 years ago

Okay I've modified your generate.js file and have subsequently pushed a new map.json file. Left the modified file off of the commit as I'm unsure how you would usually run this.

arniu commented 4 years ago

Thanks very much!