GuangchuangYu / emojifont

:lollipop:Emoji and fontawesom in both base and ggplot2 graphics
https://guangchuangyu.github.io/emojifont/
67 stars 22 forks source link

Unable to access solid fontawesome icons #25

Open stefanavey opened 5 years ago

stefanavey commented 5 years ago

Fontawesome fonts are included but some icons are not available.

For example: fontawesome("fa-fire") works but fontawesome("fa-shoe-prints") does not work (error is Invalid: fa-shoe-prints). Is this just because an older version of font awesome is bundled with package?

How can I use the latest version of font awesome icons?

monkeywithacupcake commented 3 years ago

I just went through some of the same challenges. It looks like emojifont stops at font awesome v 4 and has no support for v 5. because the fontawesome-webftont.ttf is packaged in emojifont. FA just has now an alpha release of v6. in v5 and v6 the ttf files are no longer just one ttf, but solid, regular, and brands. I am going to see if I can get them packaged and working in my local version. if so, I'll try to PR this repo.

sjgknight commented 2 years ago

@monkeywithacupcake I'm just working with your ValueBoxGrid code (thank you!) and encountered this, wonder if you got anywhere? I'm not clear what needs doing to import v.5

monkeywithacupcake commented 2 years ago

I did not get anywhere, unfortunately @sjgknight