【问题标题】:why @font-face in ie10 so difficult为什么 ie10 中的@font-face 这么难
【发布时间】:2014-03-11 21:43:23
【问题描述】:

像其他人一样,我在 InternetExplorer 中使用自定义字体时遇到问题。现在,我已经看到了许多关于该主题的主题,所有这些最终都在一个解决方案中,我不仅需要嵌入 trueType 字体(这对于所有其他主要浏览器来说已经足够了),而且建议使用类似的东西:

@font-face {
 font-family: "LCD";
 src: url('/Public/Fonts/quartz_regular-webfont.eot');
 src: url('/Public/Fonts/quartz_regular-webfont.eot?#iefix') format('embedded- opentype'),
      url('/Public/Fonts/quartz_regular-webfont.woff') format('woff'),
      url('/Public/Fonts/quartz_regular-webfont.ttf') format('truetype'),
      url('/Public/Fonts/quartz_regular-webfont.svg#quartzregular') format('svg');
 font-weight: normal;
 font-style: normal;
}

有人可以向我解释为什么 InternetExplorer 需要我的字体为 trueType、webFont、svg 和 embeddedOpentype 才能工作吗?好麻烦……

【问题讨论】:

    标签: html css internet-explorer browser fonts


    【解决方案1】:

    尝试使用this。它似乎帮助了其他人。它不适用于所有字体,但请继续尝试。

    【讨论】:

    • 是的,我知道如何解决它,我只是对为什么 IE 需要字体 i 4 格式才能正确显示任何内容感兴趣...
    猜你喜欢
    • 1970-01-01
    • 2013-02-01
    • 2023-03-25
    • 1970-01-01
    • 2013-06-30
    • 2012-08-31
    • 1970-01-01
    • 2015-03-07
    • 2013-01-27
    相关资源
    最近更新 更多