自定义字体无法在 IIS 7 上托管的 Firefox 8 上的本地和实时网站上运行
我已经尝试了使自定义字体在 Firefox 8.0 中工作的所有选项...但它们根本不起作用。它们适用于 Firefox 7 及更低版本以及所有其他浏览器(IE7、IE8、IE9、Safari) ,Chrome)
我已经尝试了 MIME 类型的所有可能选项:
woff (application/octet-stream)
woff (font/woff)
woff (application/x-font-woff)
但结果是相同的...
font-face 对于该字体根本不起作用。我的 CSS 如下:
@font-face{
font-family:'My Font';
src: url('/Fonts/My Font-webfont.eot');
src:url('/Fonts/My Font-webfont.eot?#iefix')
format('embedded-opentype'),
url('/Fonts/My Font-webfont.woff')
format('woff'),
url('/Fonts/My Font-webfont.ttf')
format('truetype'),
url('/Fonts/gebooker-webfont.svg#My Font')
format('svg');
font-weight: normal;
font-style: normal;
}
所有字体均来自同一个该网站所在的域托管..
任何人都可以建议如何使字体在 Firefox 8 上运行吗?
任何形式的帮助将不胜感激!
I have tried all the options to make the custom fonts work in Firefox 8.0...But they are not working at all.They are working on Firefox 7 and below and on all the other browsers as well(IE7,IE8,IE9,Safari,Chrome)
I've tried every possible option for MIME types:
woff (application/octet-stream)
woff (font/woff)
woff (application/x-font-woff)
but the result is the same...
font-face is not working at all for the font..My CSS is as follows:
@font-face{
font-family:'My Font';
src: url('/Fonts/My Font-webfont.eot');
src:url('/Fonts/My Font-webfont.eot?#iefix')
format('embedded-opentype'),
url('/Fonts/My Font-webfont.woff')
format('woff'),
url('/Fonts/My Font-webfont.ttf')
format('truetype'),
url('/Fonts/gebooker-webfont.svg#My Font')
format('svg');
font-weight: normal;
font-style: normal;
}
All the fonts are served from the same domain on which the site is hosted..
Can anyone please suggest how to make the font working on Firefox 8?
Any kind of help will be greatly appreciated!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的字体文件上传到 fontsquirrel.com。
这将输出您需要的所有不同字体类型,以使自定义字体在所有支持 CSS
@font-face
的浏览器上运行。Upload your font file to fontsquirrel.com.
This will output all the different font types you need to get your custom font to work on all browsers that support CSS
@font-face
.