jessedoyle / prawn-icon

Easy icons for Prawn.
Other
31 stars 15 forks source link

Can I add a fontawesome icon not currently mapped? #56

Closed jcrone closed 2 years ago

jcrone commented 2 years ago

I couldn't figure it out, so I thought maybe I had to fork , to add a new character diamond: "◆" in the fas.yml file but it didnt work for me also swtiched out the line fa-diamond: fas-gem with fa-diamond: fas-diamond in the shim.yml file

Any suggestions?

jcrone commented 2 years ago

I figured it out, I had to add the font to your ttf file. Just took me a while to figure how to do that

jessedoyle commented 2 years ago

Hi there @jcrone - thanks for using Prawn::Icon!

This gem currently uses FontAwesome 5.15.1 instead of 6.x. It looks like back in the 5.x series, fas-diamond was a pro-level icon, which was not supported out of the box.

With that being said it looks like it's no longer a pro-level icon in version 6, so maybe it's time to update!

PRs would be welcome to upgrade to FontAwesome v6, thanks!