简体   繁体   English

谷歌Chrome字体优化

[英]Google Chrome font optimization

i heavily use Google Fonts and custom fonts, as Google Chrome has a bad habit of rendering them poorly, which is a shame because everything else works so well with Google Chrome, is there any way i can (preferably using css) render the fonts to an 'Apple Safari' standard? 我大量使用谷歌字体和自定义字体,因为谷歌Chrome有一个糟糕的习惯,使他们很糟糕,这是一个耻辱,因为其他一切与谷歌Chrome一起工作得很好,有什么方法我可以(最好使用CSS)渲染字体'Apple Safari'标准?

Thanks, 谢谢,

This is an ever confounding question. 这是一个令人困惑的问题。 (see: https://superuser.com/questions/354006/google-chrome-never-renders-fonts-properly-no-smoothing-etc . See also: http://productforums.google.com/forum/#!topic/chrome/oXILHkVG75M ) (请参阅: https//superuser.com/questions/354006/google-chrome-never-renders-fonts-properly-no-smoothing-etc 。另请参阅: http//productforums.google.com/forum/# !话题/ chrome / oXILHkVG75M

It's a Windows 7/Vista ClearType issue. 这是Windows 7 / Vista ClearType问题。 AFAIK Safari, FF and IE render text differently or use their own text rendering routines. AFAIK Safari,FF和IE以不同方式呈现文本或使用自己的文本呈现例程。 Basically, it used to be that you could add a small shadow to set an internal Chrome rendering flag, and the text would look decently better, but it still looks pretty bad. 基本上,它曾经是你可以添加一个小阴影来设置内部Chrome渲染标记,文本看起来会更好,但它看起来仍然很糟糕。 That no longer works. 那不再有效。 As far as I can tell it's a bug in Chrome that hasn't been fixed. 据我所知,这是Chrome中的一个尚未修复的错误。

I'm still looking for a work-around myself, but I think we're pretty much out of luck 我仍在寻找自己的解决方案,但我认为我们运气不好

Have you had a look into -webkit-font-smoothing ? 你有没看过-webkit-font-smoothing? I regularly use Google Fonts and @font-face kits and have had success with some of the ' chunkier ' fonts using the 'subpixel-antialiased' and 'antialiased': 我经常使用Google字体和@ font-face工具包,并且使用'subpixel-antialiased'和'antialiased'成功使用了一些' chunkier '字体:

-webkit-font-smoothing: subpixel-antialiased;

-webkit-font-smoothing: antialiased;

Perhaps try each and see if either makes a difference to what you're seeing? 也许尝试每一个,看看是否有任何影响你所看到的?

There's a post on MaxVoltar that gives a reasonable explanation: 有关MaxVoltar的帖子给出了合理的解释:

http://maxvoltar.com/archive/-webkit-font-smoothing http://maxvoltar.com/archive/-webkit-font-smoothing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM