Fonts @字体在IE、Firefox中不起作用

Fonts @字体在IE、Firefox中不起作用,fonts,font-face,windows-server,Fonts,Font Face,Windows Server,我在一个.NET应用程序中使用由font Squirrel生成的@font face。字体在本地显示效果很好。但是,当发布应用程序时,它只在服务器上的Chrome中工作,而不是IE/Firefox。我正在使用所有最新版本 我尝试过处理.htaccess文件&在服务器的Mime类型中添加.otf,但仍然存在问题 任何帮助都很好。这是我用于字体的格式,如果这有帮助: @font-face { font-family: 'headings'; src: url('../fonts/he

我在一个.NET应用程序中使用由font Squirrel生成的@font face。字体在本地显示效果很好。但是,当发布应用程序时,它只在服务器上的Chrome中工作,而不是IE/Firefox。我正在使用所有最新版本

我尝试过处理.htaccess文件&在服务器的Mime类型中添加.otf,但仍然存在问题


任何帮助都很好。

这是我用于字体的格式,如果这有帮助:

@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;
}
这是我的代码:

@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;

}

我解决了这个问题。当我通过VisualStudio发布应用程序时,它没有传递字体生成器创建的12/16个字体文件。所以我把文件放在Windows服务器上


现在一切正常。

我发现通过Visual Studio发布.NET应用程序时,没有将12/16的字体文件移动到服务器。在我手动添加它们之后,一切正常。

您有任何代码可以显示吗?
@font-face{font-family:'AsapRegular';src:url('font/Asap-Regular-webfont.eot');src:url('font/Asap-Regular-webfont.eot?#iefix')格式('embedded-opentype')、url('font/Asap-Regular-webfont.woff')、url('fonts/Asap Regular webfont.ttf')格式('truetype')、url('fonts/Asap Regular webfont.svg#AsapItalic')格式('svg');字体重量:正常;字体样式:正常;}