【问题标题】:Fonts WILL NOT render in IE字体不会在 IE 中呈现
【发布时间】:2014-05-08 06:27:51
【问题描述】:

网址是http://arethebaronsplaying.com/

如果有人可以为我解决这个问题,我会提供一些值得他们花时间...认真的。

我无法让我的字体在我的 rails 应用程序的 IE 10 或 11 中呈现。我在 IE 中收到以下错误:

"CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable."

我不在乎早于 10 点。我已经尝试了人们已经提出的所有建议。

我使用了 font squirrel 字体生成器,我在我的根目录中添加了一个 `.htaccess' 文件,其中包含以下内容:

Header set Access-Control-Allow-Origin "*"

我在<head> 中添加了一个元标记

<meta http-equiv="X-UA-Compatible" content="IE=10">

我被困住了。这是我的 CSS:

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

苏格兰威士忌,有人吗?

【问题讨论】:

  • 我认为您可能需要将字体移动到 css 所在的同一文件夹中。我必须在我正在开发的网站上这样做。
  • @howlin 'fonts' 目录位于存储 css 的样式表目录中。
  • @Alohci 它在所有其他浏览器上都能正常工作。我必须附上 Internet Explorer 的许可证吗?
  • 你从哪里得到的字体?你买的还是开源的?

标签: css ruby-on-rails .htaccess internet-explorer font-face


【解决方案1】:

我发现了一个可以从命令提示符运行的漂亮程序来纠正 IE9 中的这个错误。但是请注意,如发布者下载页面所述:

更改嵌入值不会授予您分发字体的许可。如果您是字体创建者或类似的人,您应该只更改此设置。使用风险自负。

embed

您需要一个 32 位 Windows 盒子(即化石)来运行该程序。我可以访问一个。如果你想试试,我可以为你做。

你应该联系p22并询问他们如何解决权限问题。

【讨论】:

  • 我希望您尝试解决它。我真的很感激。我与 p22 交谈,他们没有告诉我如何解决权限,但我有他们的书面许可,允许我使用该网站在网站上查看。我可以通过电子邮件将字体文件发送给您吗?
  • 给我发邮件到 gmail dot com 的 andreaslyngstad。我试试看。
  • 已发送。非常感谢。
猜你喜欢
  • 1970-01-01
  • 2016-06-17
  • 2014-05-05
  • 2018-06-10
  • 2017-02-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-05
相关资源
最近更新 更多