【发布时间】: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