s_k*_*k_t 8 html css fonts internet-explorer font-face
我正在创建一个Web应用程序,并使用自定义字体和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
Run Code Online (Sandbox Code Playgroud)
我的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;
}
Run Code Online (Sandbox Code Playgroud)
我认为您需要添加以下内容:
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/octet-stream" />
</staticContent>
Run Code Online (Sandbox Code Playgroud)
在下面
<system.webServer>
Run Code Online (Sandbox Code Playgroud)
在 web.config 中。
原始来源:https://medium.com/@zikaitoh/css3111-and-css3114-issue-640e7d5e9163