-1

I'm using @font-face generated from Font Squirrel in a .NET application. The font renders great locally. But when publishing the application it only works in Chrome on the server, not IE/Firefox. I'm using all latest versions.

I've tried messing with the .htaccess file & adding .otf in the Mime types of the server but am still having issues.

Any help would be great.

Jason
  • 59
  • 1
  • 2
  • 10
  • Do you have any code to show? – Danny Jun 27 '12 at 15:56
  • `@font-face { font-family: 'AsapRegular'; src: url('fonts/Asap-Regular-webfont.eot'); src: url('fonts/Asap-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/Asap-Regular-webfont.woff') format('woff'), url('fonts/Asap-Regular-webfont.ttf') format('truetype'), url('fonts/Asap-Regular-webfont.svg#AsapItalic') format('svg'); font-weight: normal; font-style: normal; }` – Jason Jun 27 '12 at 16:18

4 Answers4

0

This is the format I use for Font-Face if this helps:

@font-face {
    font-family: 'headings';
    src: url('../fonts/headings.eot');
    src: url('../fonts/headings.eot?#iefix') format('embedded-opentype'),
         url('../fonts/headings.woff') format('woff'),
         url('../fonts/headings.ttf') format('truetype'),
         url('../fonts/headings.svg#headings') format('svg');
    font-weight: normal;
    font-style: normal;
}
Danny
  • 468
  • 2
  • 7
0

This is my code:

@font-face {
font-family: 'AsapRegular';
src: url('fonts/Asap-Regular-webfont.eot');
src: url('fonts/Asap-Regular-webfont.eot?#iefix') format('embedded-opentype'),
     url('fonts/Asap-Regular-webfont.woff') format('woff'),
     url('fonts/Asap-Regular-webfont.ttf') format('truetype'),
     url('fonts/Asap-Regular-webfont.svg#AsapItalic') format('svg');
font-weight: normal;
font-style: normal;

}

Jason
  • 59
  • 1
  • 2
  • 10
0

I figured out the issue. When I published the application through Visual Studio it did not pass 12/16 of the font files created by the font generator. So I physically put the files on the Windows server.

Everything is right as rain now.

Jason
  • 59
  • 1
  • 2
  • 10
0

I found that when publishing the .NET application through Visual Studio it was not moving 12/16 of the font files to the server. After I added them manually all was working just fine.

Jason
  • 59
  • 1
  • 2
  • 10