【发布时间】:2015-01-27 10:40:21
【问题描述】:
我在使用新的 64 位 Chrome 时遇到问题。
它不会以常规方式呈现自定义字体,仅以粗体呈现。
图片的顶部是它的显示方式。底部是实际渲染的内容。
这是我得到的:
@font-face {
font-family: 'icons';
src: url('../fonts/icons.eot');
src: url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
url('../fonts/icons.woff') format('woff'),
url('../fonts/icons.ttf') format('truetype'),
url('../fonts/icons.svg#untitled_fontregular') format('svg');
font-weight: normal;
font-style: normal;
}
.icon {
font-family: 'icons'; font-style: normal; font-weight: normal;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
line-height: 1;
position: relative;
display: inline-block;
}
我已经在 Firefox、Safari 和 Opera 中对其进行了测试,一切都很好。
有什么建议...?
谢谢
【问题讨论】:
-
你能帮我在 jsfiddle 上重新创建这个吗?
-
好的,这里...jsfiddle.net/KupGest/75cwuwax
-
在我的屏幕上看起来不错哈哈。 (在铬)
-
你的版本是什么?
-
版本 39.0.2171.71(64 位)
标签: css google-chrome fonts font-face