我正在尝试通过@font-face
CSS 规则加载字体。除了 Firefox 3.6 之外,我已经让它在所有浏览器(包括 IE6)中都能正常工作,甚至可能更低。这是我当前的代码。
@font-face {
font-family: 'DigitaldreamFatRegular';
src: url('../fonts/digitaldreamfat-webfont.eot');
src: url('../fonts/digitaldreamfat-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/digitaldreamfat-webfont.woff') format('woff'),
url('../fonts/digitaldreamfat-webfont.ttf') format('truetype'),
url('../fonts/digitaldreamfat-webfont.svg#DigitaldreamFatRegular') format('svg');
font-weight: normal;
font-style: normal;
}
它是由Font Squirrel生成的,所以理论上应该是完美的。我已经尝试了 live http headers 插件,它表明它根本没有被请求。尽管通过 Google 网络字体加载的字体运行良好。
有谁知道 3.6 中可能导致此类问题的任何警告?我试过在本地和服务器上运行它,它没有任何区别。
请记住,我只在 Firefox 3.6 for Mac 上进行了测试。我将尝试查看 Windows 版本是否正常工作。
任何建议将不胜感激,谢谢。