html - IE 10 字体问题 - OpenType 嵌入权限检查失败。权限必须是可安装的

标签 html css internet-explorer fonts font-face

我正在创建一个网络应用程序并使用自定义字体和 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/

相关文章:

java - 如何在不使用表单的情况下从jsp调用servlet

javascript - 何时应用动态样式表?

java - IE11 上的 Selenium WebDriver 在 URL 中总是有 "--port="

javascript - Internet Explorer 8 chop iframe 内容

html - 在 HTML/CSS 中将文本与图像对齐

javascript - jQuery - 仅当第一个被选中时才将第二个单选按钮作为目标

javascript - 汇总、Svelte、SCSS : how to build different bundles at once?

google-chrome - Vuejs 无法在 IE 上运行

javascript - 如何将默认占位符文本提供给 ckeditor 中的文本区域?

javascript - 想要将所有导航选项卡收集到页面缩放上的图标中