I'm trying to use F-A v4.7 to display some icons. I can't use the CDN because I'm building an intranet site that doesn't have access outside the network. I copied the .css files to my Content folder and the fonts to a directory in the root of the site.
I added the .css to the bundle in my MVC project. I now get the intellisense for the different F-A icons. However, when I browse to the site my sample icon doesn't show.
I looked at the page with the developer tools and I don't have any errors. I edited the .css file and replaced the fonts URL to use "~" instead of ".." but that didn't work.
@font-face {
font-family: 'FontAwesome';
src: url('~/fonts/fontawesome-webfont.eot?v=4.7.0');
I did that because my .css file is in root\Content\font-awesome.css and the fonts are in root\fonts\ folder. Using the tilde should make sure it uses the root and then \fonts\ directory.
Still, no errors, no black square where the icon should be. It just doesn't show the icon. In the developer tools I can see what looks to be the correct syntax. <i class="fa fa-print"> FA font</i>
Anyone have any suggestions?
You can download the entire font-awesome and use it inside your project by using link as as usual
Here is the download link : http://fontawesome.io/assets/font-awesome-4.7.0.zip
no need to create it manually
Your
<i class="fa fa-print"> FA font</i>would work fine