我想知道是否有人有这个问题 - @ font-face字体在Chrome中无法正确呈现,有时他们会这样做,有时候不会,这实际上是问题所在,因为我可以跟踪我自己的错误。在其他浏览器中,一切都很好。我使用Icomoon字体及其语法:@ font-face chrome rendering
@font-face {
font-family: 'entypo';
src:url('/fonts/entypo.eot');
src:url('/fonts/entypo.eot?#iefix') format('embedded-opentype'),
url('/fonts/entypo.svg#entypo') format('svg'),
url('/fonts/entypo.woff') format('woff'),
url('/fonts/entypo.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
font-family: 'entypo';
content: attr(data-icon);
speak: none;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
/* Use the following CSS code if you want to have a class per icon */
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: 'entypo';
font-style: normal;
speak: none;
font-weight: normal;
-webkit-font-smoothing: antialiased;
line-height:1;
}
的.htaccess中的字体文件夹:
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
根的.htaccess具有相同的规则。
所以我不知道还有什么可能是错的,正在搞乱我的字体。 非常感谢您的帮助!
您是否找到了解决方案? – Sergio