Html 在Linux上,字体显示更厚
我在Linux上的网站有点问题。Linux上的字体我看到了更厚的字体,比如薄字体。即使在苹果电脑上,字体也很漂亮。我使用谷歌机器人字体。下面是字体示例 这是我的CSS,我是如何使用Html 在Linux上,字体显示更厚,html,css,linux,fonts,Html,Css,Linux,Fonts,我在Linux上的网站有点问题。Linux上的字体我看到了更厚的字体,比如薄字体。即使在苹果电脑上,字体也很漂亮。我使用谷歌机器人字体。下面是字体示例 这是我的CSS,我是如何使用font-face @font-face { font-family: 'Roboto Light'; src: url("../fonts/Roboto-Light.ttf") format("truetype"); font-weight: 300; font-style: norm
font-face
@font-face {
font-family: 'Roboto Light';
src: url("../fonts/Roboto-Light.ttf") format("truetype");
font-weight: 300;
font-style: normal
}
@font-face {
font-family: 'Roboto Regular';
src: url("../fonts/Roboto-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal
}
@font-face {
font-family: 'Roboto Medium';
src: url("../fonts/Roboto-Medium.ttf") format("truetype");
font-weight: 500;
font-style: normal
}
窗口
Linux
Exchange在LINUX上以白色突出显示
有什么解决方案吗?实际上,Windows的问题在于没有使字体看起来抗锯齿<代码>:(也签入Mac。看起来像Linux。
@PraveenKumar引用了我的问题“即使在苹果电脑上字体也很漂亮。”对于Windows和Apple,我对这种字体没有问题。只有LinuxIt依赖于浏览器。Mozilla使用freetype库渲染字体,而chrome有自己的fontrendering引擎。@DanielsJirgensons这太疯狂了……是的……这与字体渲染器有关……在Linux中,字体渲染器有设置。请参阅KDE;否我不确定其他环境。