• 18
  • Aug

在比较过Gentoo,ArchLinux和Ubuntu的默认字体渲染效果后,发现最终还是Ubuntu的字体渲染合我胃口。

Gentoo是最普通的,ArchLinux有ClearType补丁,但是启用后感觉字体不正了。于是花了点时间,成功移植了一系列Ubuntu的软件包及相关补丁,我的Gentoo现在拥有跟Ubuntu一样完美的字体渲染了。

那天OceanBoo兄告诉我devnull这个Overley有最新的应用了Ubuntu补丁的Cairo和Fontconfig,于是试了试,发现并没有真正启用。

今天检查了一下,发现devnull漏打了一些补丁,而且它默认用了高版本的fontconfig 2.7.0,而不是Ubuntu的fontconfig 2.6.0。

于是我决定全面向Ubuntu 9.10看齐,从其中把相关的补丁全面搞过来,并把fontconfig降为稳定版本的2.6.0。

在emerge了应用了Ubuntu补丁后的libXft, freetype, fontconfig和cairo后。我的Gentoo上的Freifox顿感清晰和靓丽:

Perect Font Rendering of Firefox

Ubuntu的补丁不是盖的,在LCD确实是比较完美的渲染效果!大家认为呢?

所有的变动都在我的Overlay里:http://github.com/tualatrix/gentoo/tree/master

需要注意的是,我没有用什么“ubuntu”的USE,默认就打上了这些补丁。

Tags: ebuild, Gentoo, Ubuntu.

» You can leave a comment.

28 Comments

  1. 喵喵

    真棒!可惜现在似乎因为地震 overlay加不上,先望梅止渴啦。

  2. 喵喵

    啊,不是地震是台风啦。

  3. lh

    我觉得stheiti和ubuntu的补丁看起来偏色有些重。

    arch里面的lcd补丁本来是cairo的git仓库里面采用的,后来又去掉的。感觉非常不错,只需要自己重新编译cairo就好了。

  4. http://photo.yupoo.com/oceanboo/323277ee3cf2/wj6maa1s/
    TX,这是我用 devnull overlay + ubuntu USE 的效果。

  5. 能不能给个中文的效果图看看,谢了

  6. aniii

    这里真的太多高手了 搞到我要问一些肤浅的问题都不敢启齿
    名副其实的 往来无白丁 呵呵

    一直觉得 all your themes 都很漂亮 说说名字 如何 呵呵

  7. 喵喵

    * Failed Patch: enable-subpixel-rendering.patch !
    * ( /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch )

    ==

    PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch

    ===========================================
    can't find file to patch at input line 3
    The text leading up to this was:
    --------------------------
    |--- freetype-2.2.1.orig/include/freetype/config/ftoption.h 2006-09-27 00:55:44.000000000 +0300
    |+++ freetype-2.2.1/include/freetype/config/ftoption.h 2006-10-31 03:08:14.000000000 +0200
    --------------------------
    No file to patch. Skipping patch.
    ===========================================

    PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch

    ===========================================
    patching file include/freetype/config/ftoption.h
    Hunk #1 FAILED at 92.
    1 out of 1 hunk FAILED -- saving rejects to file include/freetype/config/ftoption.h.rej
    ===========================================

    PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch

    ===========================================
    can't find file to patch at input line 3
    The text leading up to this was:
    --------------------------
    |--- freetype-2.2.1.orig/include/freetype/config/ftoption.h 2006-09-27 00:55:44.000000000 +0300
    |+++ freetype-2.2.1/include/freetype/config/ftoption.h 2006-10-31 03:08:14.000000000 +0200
    --------------------------
    No file to patch. Skipping patch.
    ===========================================

    PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch

    ===========================================
    can't find file to patch at input line 3
    The text leading up to this was:
    --------------------------
    |--- freetype-2.2.1.orig/include/freetype/config/ftoption.h 2006-09-27 00:55:44.000000000 +0300
    |+++ freetype-2.2.1/include/freetype/config/ftoption.h 2006-10-31 03:08:14.000000000 +0200
    --------------------------
    No file to patch. Skipping patch.
    ===========================================

    PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/layman/tualatrix/media-libs/freetype/files/enable-subpixel-rendering.patch

    ===========================================
    can't find file to patch at input line 3
    The text leading up to this was:
    --------------------------
    |--- freetype-2.2.1.orig/include/freetype/config/ftoption.h 2006-09-27 00:55:44.000000000 +0300
    |+++ freetype-2.2.1/include/freetype/config/ftoption.h 2006-10-31 03:08:14.000000000 +0200
    --------------------------
    No file to patch. Skipping patch.

  8. 挺好看,可以跟windows媲美了。

    • Windows的字体渲染很好?XP的有够烂吧?除非用GDI。Vista和7才有了些许改进。

      看看OS X就知道什么才是好的字体渲染了。现在Linux的设置得当也很不错了。TX的就不赖。

    • 只能说,Windows的字体渲染哲学,与Mac OS X/Linux的完全不一样。

      • 确实就是这么回事,对字体渲染的理解和哲学,完全不同。

        http://www.ruanyifeng.com/blog/2009/01/font_smoothing_anti-aliasing_and_sub-pixel_rendering.html

  9. 用fontconfig-2.6.0就可以了吗?其他几个要不要改?

  10. transtone

    gentoo-china overlay 里几个相关包的 ubuntu USE好像正是打的ubuntu补丁吧,不知和博主的有何不同。如果可能的话,整合到 gentoo-china 里去比较好吧。

  11. rushui999

    果然是相当相当的清晰,另外,如果这个补丁被很多人证实确实比以前的好的话,强烈建议添加到china-overlay里面去。

  12. 现在补丁还有点乱,而且有待清理,需要稳定了再考虑弄到China-overlay吧。

    • transtone

      经过本轮反复测试(原来也进行过好几次),发现还是portage自带的cleartype在我的机器上运行得最好,也无须限制版本什么的。机器是14.1宽屏液晶,1440x900的分辨率,字体是win7的6.01版雅黑。http://www.pict.com/view/1499874/800/200908211932391440x900scrot

  13. 冰怨

    TX,cairo没有ubuntu的USE,改用cleartype吗?

  14. 冰怨

    emerge libXft的时候并未显示打上ubuntu的patch,TX可否解答?

    • 我的ebuild都没有显示地说明Ubuntu的USE,但是实际上已经应用上去了。

      • 冰怨

        我的意思是看emerge libXft的过程,没有显示打上ubuntu的patch,是打上了没有显示?不对阿,另外几个包打都显示了打patch的过程

Leave a Comment