为什么在IE8中的其中一个字体表面渲染,但其他人没有? [英] Why does one of these font-face render in IE8, but the others don't?

查看:98
本文介绍了为什么在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;
}

我真的不知道。

推荐答案

尝试创建一个新的 .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 字体信息

  • 确保人物的字体名称,姓氏和名称全部相同 / li>
  • 将字体保存为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是正确的 - 工作与上述两个解决方案之一,所以运气:-)也许甚至尝试保存字体,没有任何更改在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天全站免登陆