我正在创建一个网络应用程序并使用自定义字体和 fontawesome。我收到以下错误 CSS3114:@font-face 未通过 OpenType 嵌入权限检查。权限必须是可安装的。 305D82_3_0.ttf
CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable.
glyphicons-halflings-regular.ttf
我的 CSS 是
@charset "UTF-8";
@font-face
{
font-family: 'c_regular';
src: url("305D82_3_0.eot") format("embedded-opentype");
src: url("305D82_3_0.eot?#iefix") format("embedded-opentype"), url("305D82_3_0.woff2") format("woff2"), url("305D82_3_0.woff") format("woff"), url("305D82_3_0.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face
{
font-family: 'e_bold';
src: url("fsemeric-bold-webfont.eot") format("embedded-opentype");
src: url("fsemeric-bold-webfont.eot?#iefix") format("embedded-opentype"), url("fsemeric-bold-webfont.woff2") format("woff2"), url("fsemeric-bold-webfont.woff") format("woff"), url("fsemeric-bold-webfont.ttf") format("truetype"), url("fsemeric-bold-webfont.svg#e_bold") format("svg");
font-weight: normal;
font-style: normal;
}
最佳答案
我认为您需要添加以下内容:
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/octet-stream" />
</staticContent>
在
<system.webServer>
在 web.config 中。
原始来源:https://medium.com/@zikaitoh/css3111-and-css3114-issue-640e7d5e9163
关于html - IE 10 字体问题 - OpenType 嵌入权限检查失败。权限必须是可安装的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43098778/