Internet Explorer @ font-face失败 [英] Internet Explorer @font-face is failing
问题描述
我想让Internet Explorer呈现我漂亮的字体。它不工作。他们在Firefox中工作正常,我可以看到在我的Apache访问日志,IE已拉字体。
I'm trying to get Internet Explorer to render my pretty fonts. It's not working. They work fine in Firefox and I can see in my Apache access logs that IE has pulled the fonts. So it's parsing the font-face CSS tag, just not rendering them.
我用来转换字体的网站是: http://www.kirsle.net/wizards/ttf2eot.cgi 。我试过微软的WEFT工具,但它不能正常工作。
The site I used to convert the fonts was: http://www.kirsle.net/wizards/ttf2eot.cgi. I tried that WEFT tool by Microsoft but it wouldn't work properly. After installing and opening it, it said 'First time running it, do this...' then it continually hanged.
这是我的CSS:
@font-face
{
font-family: 'HelveticaLTCN';
src: url('HelveticaNeueLTCom-LtCn_0.eot');
src: local('HelveticaNeuel TCom LtCn'), url('HelveticaNeueLTCom-LtCn_0.ttf') format('TrueType');
}
有关为什么IE不呈现字体的任何想法?
Any ideas as to why IE isn't rendering the fonts?
编辑:还应该提到,我用以下方式调用字体:
Should also mention, I'm calling the font with:
p .mytext
{
font-family: HelveticaLTCN;
}
推荐答案
毛巾或您仍然在努力与我强烈推荐字体松鼠 a>。它比任何其他在线.eot生成器取代WEFT好得多。作为一个巨大的奖金,它提供所有需要的跨浏览器格式在一个zip文件以及一个工作的CSS + HTML样本页。
这是最接近@fontface nirvana的东西。
If you've thrown in the towel or you're still struggling with this I strongly recommend font squirrel. It replaces WEFT far better than any of the other online .eot generators. As a huge bonus, it supplies all needed cross-browser formats in one zip file along with a working CSS+HTML sample page. It's the closest thing yet to @fontface nirvana.
这篇关于Internet Explorer @ font-face失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!