坏的字体渲染Chrome [英] Bad font rendering Chrome
问题描述
如何解决此问题?
第一个D在Chrome 31.0.1650.63 m上呈现,第二个在IE11上呈现。
更新: / strong>
添加 -webkit-font-smoothing:antialiased;
问题仍然存在...
这可能是
css字体代码:
@ font-face {
font-family:'Open Sans';
font-style:normal;
font-weight:300;
src:local('Open Sans Light'),local('OpenSans-Light'),url(../ font / font1.woff)format('woff');
}
@ font-face {
font-family:'Open Sans';
font-style:normal;
font-weight:400;
src:local('Open Sans'),local('OpenSans'),url(../ font / font2.woff)format('woff');
}
渲染引擎,但它看起来像这终于要被修复。请参阅 https://plus.google.com/u/0/+FrancoisBeaufort/ posts / PGPpiQr6bwi
问题是Chromium的错误追踪程式:
https://code.google.com/p/chromium/issues/detail?id=333029
https://code.google.com/p/chromium/issues/detail?id=25541
EDIT:
支持漂亮字体渲染的DirectWrite支持已添加到Chrome 37中。
(来源: https://code.google.com / p / chromium / issues / detail?id = 25541#c152 )
How i fix this?
First "D" is rendered on Chrome 31.0.1650.63 m and second is rendered on IE11.
Update:
adding -webkit-font-smoothing: antialiased;
the problem remains...
It could be a problem with the video card?
Update 2:
css font code:
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(../font/font1.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(../font/font2.woff) format('woff');
}
This is an issue with Chrome rendering engine but it looks like this is finally going to be fixed. See https://plus.google.com/u/0/+FrancoisBeaufort/posts/PGPpiQr6bwi
The issue is on Chromium's bugtracker: https://code.google.com/p/chromium/issues/detail?id=333029 https://code.google.com/p/chromium/issues/detail?id=25541
EDIT:
The DirectWrite support which enables pretty font rendering has been added to Chrome 37.
(source: https://code.google.com/p/chromium/issues/detail?id=25541#c152)
这篇关于坏的字体渲染Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!