Closed geraldhiller closed 7 years ago
You would serve the font as a static file, and include it in your CSS. There is nothing rails specific about it. In fact, since you shouldn't be serving static files through rails at all (you should be using your front end web server to serve both the font and CSS), you shouldn't do anything to a rails app to use a font.
Which file would I serve?
You need to add the rpg-awesome.css to your html page and make sure the file path for the fonts point to the correct place.
The paths for the fonts are at the top of the css file so you can't miss them.
Add this between your head tags (make sure file path is correct):
<link rel="stylesheet" href="css/rpg-awesome.css" />
You use the icons like this:
<i class="ra ra-aware"></i>
Here's the full list of icons keep the ra class and just change the ra-aware to the one you want.
Also there is a demo file you can checkout that should help.
Thanks a lot!
How would I install this in a rails app? Thanks a lot for your help!