为什么这些字体之一在IE8中呈现,而其他字体却不呈现? [英] Why does one of these font-face render in IE8, but the others don't?

查看:127
本文介绍了为什么这些字体之一在IE8中呈现,而其他字体却不呈现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么此字体在IE8中呈现:

Why does this fontface render in IE8:

@font-face {
  font-family: 'Aller';
  src: url('aller_rg-webfont.eot');
  src: url('aller_rg-webfont.eot?#iefix') format('embedded-opentype'),
       url('aller_rg-webfont.woff') format('woff'),
       url('aller_rg-webfont.ttf') format('truetype'),
       url('aller_rg-webfont.svg#AllerRegular') format('svg');
  font-weight: normal;
  font-style: normal;
}

这不是:

@font-face {
  font-family: 'Champagne';
  src: url('champreg-webfont.eot');
  src: url('champreg-webfont.eot?#iefix') format('embedded-opentype'),
       url('champreg-webfont.woff') format('woff'),
       url('champreg-webfont.ttf') format('truetype'),
       url('champreg-webfont.svg#Champagne&LimousinesRegular') format('svg');
  font-weight: normal;
  font-style: normal;
}

我真的不知道.显然,所有其他浏览器都可以正常工作.

I really can't figure it out. All other browsers work fine, obviously.

推荐答案

尝试使用在线woff/ttf/svg到eot转换器与其他一个创建新的.eot文件.

Try creating a new .eot file with one of the others using an online woff/ttf/svg to eot convertor.

  • http://www.font2web.com/
  • http://www.fontsquirrel.com/fontface/generator <- might have problems because they black list font names.

如果此新文件不起作用,则可能是字体本身存在问题.如果实际字体文件中的字体名称"和家族名称"不同,则有时IE6-8会适合.要解决它:

If this new file doesn't work, then it might be a problem with the font itself. Sometimes IE6-8 has a fit if the Fontname and Family Name are not the same within the actual font file. To fix it:

  • 您需要下载 FontForge
  • 打开字体
  • 从菜单中选择Element> Font Info
  • 确保字体名称,姓氏和人类的姓名都相同
  • 将字体另存为TTF或OTF,并使用在线转换器将EOT文件吐出.
  • You'll need to download FontForge
  • Open up the font
  • From the menu, choose Element > Font Info
  • Ensure the Fontname, Family Name and Name for Humans are all the same
  • Save the font as a TTF or OTF and use an online convertor to spit out an EOT file.

我遇到的每一个关于font-face的问题-如果CSS正确-都可以使用以上两种解决方案之一,所以祝您好运:-)甚至可以尝试保存Font而不更改FontForge中的字体并在线进行转换在摆弄名字属性之前.

Every issue I've had with font-face - if the CSS was correct - worked with one of the above two solutions, so good luck :-) Maybe even try saving the font without any changes in FontForge and converting that online before you fiddle with the name properties.

这篇关于为什么这些字体之一在IE8中呈现,而其他字体却不呈现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆