我使用此字体:字体面麻烦(尖锐边缘)在Firefox
https://material.io/guidelines/resources/roboto-noto-fonts.html
(Roboto-Regular.ttf
和Roboto-Medium.ttf
)
和在css
(少)我限定@font-face
这种方式:
@font-face {
font-family: 'Roboto';
src: url('Roboto-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Roboto-Medium';
src: url('Roboto-Medium.ttf') format('truetype');
}
后来我用它这样:
html {
font-size: 62.5%;
}
body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.some-element {
font: 2.2rem 'Roboto';
}
,并在每个浏览器,除了Firefox
和IE
是确定的。
我得到:
在Chrome一切都很好:
边缘不光滑,我不知道,为什么呢?我做错了什么? BTW:我不能使用谷歌的字体
这个工具craching我的line-height:西里尔文字符 – brabertaser19