-1

I've been looking everywhere but I still couldn't find an answer. Google Chrome does not recognize the font. Here is part of my code, hope it will help you tell me where I'm wrong.

@font-face {
font-family: 'N';
src: url('../fontawesome-webfont.eot'); /* IE9 Compat Modes */
src: url('../fontawesome-webfont.eot?#iefix') format('embedded-opentype'), 
   url('../f.woff') format('woff'), 
   url('../fontawesome-webfont.ttf')  format('truetype'),
   url('../fontawesome-webfont.svg#svgFontName') format('svg');
   }

.btn {
  font-family: 'N';
 display: inline-block;
  padding: 6px 12px;
 etc....

The files are in the right folder.

SeinopSys
  • 8,787
  • 10
  • 62
  • 110

1 Answers1

0

put the font files side of your pages in same level for check mapping and be sure the path is correct.

if you are using a web server (IIS etc..) you may need add the MIME type in your config file: Add MIME mapping in web.config for IIS Express

Community
  • 1
  • 1
Hamed
  • 61
  • 7