首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >字体未在ie 10或11中呈现

字体未在ie 10或11中呈现
EN

Stack Overflow用户
提问于 2014-03-27 02:37:35
回答 2查看 3.3K关注 0票数 2

我的网站:http://arethebaronsplaying.com/

在IE10或IE11中没有正确地呈现字体。下面是我的css:

代码语言:javascript
复制
@font-face {
font-family: 'Mono Social Icons Font';
src: asset_url('fonts/MonoSocialIconsFont-1.10.eot');
src: asset_url('fonts/MonoSocialIconsFont-1.10.eot?#iefix') format('embedded-opentype'),
     asset_url('fonts/MonoSocialIconsFont-1.10.woff') format('woff'),
     asset_url('fonts/MonoSocialIconsFont-1.10.ttf') format('truetype'),
     asset_url('fonts/MonoSocialIconsFont-1.10.svg#MonoSocialIconsFont') format('svg');
src: asset_url('fonts/MonoSocialIconsFont-1.10.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

@font-face {
  font-family: 'hamilton18';
  src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.eot');
  src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.eot?#iefix') format('embedded-opentype'),
   asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.woff') format('woff'),
   asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.ttf') format('truetype'),
   asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.svg#MonoSocialIconsFont') format('svg');
  src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

在chrome/safari/firefox中,一切看起来都很棒。有什么想法吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-03-27 05:37:51

查看您网站IE中的控制台,会出现以下错误-

CSS3114:@ OpenType嵌入权限检查失败。权限必须是不可更改的。

在web上,讨论这个问题的两个链接是:https://github.com/tapquo/lungo.icon/issues/1http://codecanyon.net/forums/thread/css3114-fontface-failed-opentype-embedding-permission-check-permission-must-be-installable/78963

公共解决方案链接:http://carnage-melon.tom7.org/embed/

然而,该工具似乎只适用于较旧版本的窗口,而不适用于最新版本的windows。

票数 1
EN

Stack Overflow用户

发布于 2015-04-24 10:02:15

要解决这个问题,只需将-ms-font-feature-settings:"liga" 1;添加到css中即可。

例如:

代码语言:javascript
复制
.social .icon {
  -ms-font-feature-settings:"liga" 1;
  font-family:'Mono Social Icons Font';
  -webkit-text-rendering:optimizeLegibility;
  -moz-text-rendering:optimizeLegibility;
  -ms-text-rendering:optimizeLegibility;
  -o-text-rendering:optimizeLegibility;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-font-smoothing:antialiased;
  -ms-font-smoothing:antialiased;
  -o-font-smoothing:antialiased;
  font-smoothing:antialiased;
}
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22677240

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档