【发布时间】:2013-09-18 04:07:16
【问题描述】:
我正在尝试使用-webkit-font-smoothing CSS 属性控制 Google Chrome 的(可怕的)字体抗锯齿,但它对文本完全没有影响。
<div style="font-size: 42px">
<p style="-webkit-font-smoothing: subpixel-antialiased">This is a font test.</p>
<p style="-webkit-font-smoothing: antialiased">This is a font test.</p>
<p style="-webkit-font-smoothing: none">This is a font test.</p>
</div>
我在 Photoshop 中比较了像素,所有三个都完全相同。 Chrome 不再支持此属性了吗?
【问题讨论】:
-
您使用的是哪个操作系统?
-
我在 Windows 7 上。字体渲染在 OSX 中似乎很好。
-
它们在 OSX、Chrome 31 上看起来都不同。
-
我想我必须让 Windows 上的 Chrome 用户看到可怕的像素化文本。我认为到 2013 年我们至少会解决不一致的字体渲染问题。
-
其实Chrome长期以来一直存在字体渲染问题,不管字体是否平滑。查看我的answer here 了解详情。但很快就会有一个修复,看起来,终于!
标签: css google-chrome fonts