【发布时间】:2014-04-23 14:52:45
【问题描述】:
我无法让自定义的、非网络安全的字体在 Firefox 中工作。我使用以下代码在 Chrome、Opera 和 Safari 中工作:
@import url(http://fonts.googleapis.com/css?family=Antic+Slab);
@font-face {
font-family: 'BadgerFont';
src: url('http://www.vectorthatfox.co.uk/badgerandkingdom/fonts/oratorstd-webfont.eot');
src: url('http://www.vectorthatfox.co.uk/badgerandkingdom/fonts/oratorstd-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.vectorthatfox.co.uk/badgerandkingdom/fonts/oratorstd-webfont.woff') format('woff'),
url('http://www.vectorthatfox.co.uk/badgerandkingdom/fonts/oratorstd-webfont.ttf') format('truetype'),
url('http://www.vectorthatfox.co.uk/badgerandkingdom/fonts/oratorstd-webfont.svg#orator_stdregular') format('svg');
font-weight: normal;
font-style: normal;
}
body{
font-family: BadgerFont, 'Antic Slab', Serif;
letter-spacing: 1px;
}
我在这里缺少什么? Heres a link 到该网站,以防您想亲自查看。
【问题讨论】:
-
Deryck,你确定你看到的是 @font-face 字体而不是 google apis 字体吗?
-
这对我来说真是令人难以置信,哈哈,在 Chrome 中工作,其他字体在 FF 中工作,但是这个 BadgerFont/OratorStd 只是拒绝在 FF 中加载,无论我输入什么顺序,什么其他字体我禁用了声明,
@imports我删除了什么,它仍然存在。
标签: html css firefox font-face