为什么我的字体在IE9更好看? [英] Why does my font look much better in IE9?

查看:96
本文介绍了为什么我的字体在IE9更好看?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 font-family:Myriad; font-size:40px 。我不能相信IE以最好的质量显示字体!比Opera,Firefox和Chrome好多了。

I use font-family: Myriad; font-size: 40px for some text. I can't believe IE displays the font in the best quality! Much better than Opera, Firefox and Chrome.

如何做到?

这里是一个演示:

http://jsfiddle.net/55Ruh/3/

在所有浏览器中尝试此链接。 IE(最新版本,9)显示最好和最高质量的文本,不是吗?

Try this link in all browsers. IE (the newest version, 9) shows the best and most quality text, doesn't it?

推荐答案

是因为IE9引入了新的字体渲染引擎,主要基于 WPF的ClearType实现。它的增强引擎更好地减少锯齿边缘,使字体看起来更平滑和更好,特别是在大尺寸。

Simply put: this is because IE9 introduces a new font rendering engine that is based largely on that seen in WPF's ClearType implementation. Its enhanced engine does a better job at reducing jagged edges, making fonts look smoother and better, especially at large sizes.

进入细节 - 我的意思是获得 技术 - 这种ClearType不同于在Windows的其余部分,也被称为GDI ClearType(对于Windows的GDI图形库)。旧的GDI ClearType是Windows版本的大多数其他浏览器的基础上,他们的字体渲染引擎,这也使字体看起来真正的大尺寸的锯齿。

Getting into the details — and I mean to get really technical — this breed of ClearType is different from the one seen in the rest of Windows, also known as GDI ClearType (for Windows' GDI graphics library). The old GDI ClearType is the one that Windows versions of most other browsers base their font rendering engines off, which is also the one that makes fonts look really jaggy in large sizes.

以下段落从第二个链接总结其大部分的内容,这很好地解释为什么字体看起来更流畅的IE9的新引擎:

The following paragraph from the second link summarizes most of the rest of its content, that explains quite nicely why fonts look smoother in IE9's new engine:


<相对于先前版本的ClearType的显着改进是使用子像素定位。与在GDI中发现的ClearType实现不同,在Windows Presentation Foundation(WPF)中找到的ClearType允许字形在像素内开始,而不仅仅是像素的起始边界。由于定位字形的额外分辨率,字形的间距和比例更加精确和一致。

A significant improvement over the previous version of ClearType is the use of sub-pixel positioning. Unlike the ClearType implementation found in GDI, the ClearType found in Windows Presentation Foundation (WPF) allows glyphs to start within the pixel and not just the beginning boundary of the pixel. Because of this extra resolution in positioning glyphs, the spacing and proportions of the glyphs is more precise and consistent.

有关 Y方向抗锯齿的部分,其屏幕截图比较。另一个引号:

See, especially, the section on Y-direction anti-aliasing with screenshots for comparison. Another quote:


Windows Presentation Foundation(WPF)中的ClearType在y方向上提供了抗锯齿功能, p>

ClearType in Windows Presentation Foundation (WPF) provides antialiasing on the y-direction level to smooth out any jagged edges.

这篇关于为什么我的字体在IE9更好看?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆