【发布时间】:2012-06-27 15:54:05
【问题描述】:
我在 .NET 应用程序中使用从 Font Squirrel 生成的 @font-face。字体在本地渲染得很好。但是在发布应用程序时,它只能在服务器上的 Chrome 中运行,而不是 IE/Firefox。我正在使用所有最新版本。
我尝试弄乱 .htaccess 文件并在服务器的 Mime 类型中添加 .otf,但仍然遇到问题。
任何帮助都会很棒。
【问题讨论】:
-
你有代码要显示吗?
-
@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; }
标签: fonts font-face windows-server