繁体   English   中英

字体,Internet Explorer显示错误的字体

[英]Font face, Internet Explorer showing the wrong font

这有什么问题吗?

这是添加的CSS。

@font-face {
    font-family: NeutraText-Book;
    src: url('../fonts/NeutraText/NeutraText-Book.eot'); /* IE9 Compat Modes */
    src: url('../fonts/NeutraText/NeutraText-Book.eot?#iefix') format('embedded-opentype');
    src: url('../fonts/NeutraText/NeutraText-Book.otf');
    src: url('../fonts/NeutraText/NeutraText-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

相对网址正确,因为它们可在Firefox和Chrome中使用。

我使用以下工具从.ttf转换为.eot http://ttf2eot.sebastiankippe.com/

我正在使用Internet Explorer v10,但它显示的是另一种字体,看起来像Verdana或类似的东西。

IE说:

CSS3111: @font-face encountered a unknown error
NeutraText-Book.otf
CSS3114: @font-face failed with the control of OpenType-embedd permission. Permission must be installable. 
NeutraText-Book.otf

(翻译自我的主要语言)。

浏览器可以根据其许可条件,以不同方式并在不同程度上检查是否使用了嵌入式字体(网络字体, @font-face字体)。 这似乎是这种情况,因为第二条错误消息说得很清楚。

请与字体供应商联系,以获取使用该字体的条件,并可能购买许可用作嵌入式字体的版本,或者尝试查找允许用作嵌入式字体的其他替代字体,例如许多Google字体之一。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM