LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 7903|回复: 4

David Turner's LCD ClearType-like patches and packages for Debian Sid

[复制链接]
发表于 2006-8-24 03:45:11 | 显示全部楼层 |阅读模式
这些补丁其实有一段时间了,但我们这个版块提的人不多。我就打了几个包并附上补丁方便大家安装使用,论坛附件容量太小,我把它们放在我的 google page 上,欢迎大家下载测试:
http://quanli.googlepages.com/

David Turner's LCD ClearType-like patches and packages for Debian Sid
by quanliking

Update: 2006-08-24

Notice: These patches will dramaticly improve your LCD's font rendering capibility. But the Author David Turner is still too unsure of the patent situation regarding this technology to do that now.

You can find some info about these patches in the following urls:
http://lists.nongnu.org/archive/ ... 06-05/msg00044.html
http://lists.nongnu.org/archive/ ... 06-04/msg00012.html

patches:
de7cccfcca8e686bca039a985436548e  libcairo-1.2.4-lcd-cleartype-like.diff
731121a3dfc663b9e4e5c4ad2e158f22  libxft-2.1.8.2-lcd-cleartype-like.diff
70d23f3557750c0503689d3314958d89  freetype-2.2.1-subpixel-disable-quantization.diff

patched packages:
68e361134f6dbce0f591065cf98c25c5  libcairo2_1.2.4-2_i386.deb
9d298e0f1d34cd5f446c9299f6ce7478  libcairo2-dev_1.2.4-2_i386.deb
3eced55b48a1ea154d85f95cd0cebac3  libxft2_2.1.8.2-9_i386.deb
033dae2d9d3c40401daa811f978b5448  libxft-dev_2.1.8.2-9_i386.deb
13eb398cf3d2476cbdf0993d4ec068ad  libfreetype6_2.2.1-3_i386.deb
4722d65b8398ce481b69fa8d0a2b173c  libfreetype6-dev_2.2.1-3_i386.deb


Howto: patch and build the packages
Reference link:
Improve font rendering; premade debs and instructions to patch yourself:
http://www.ubuntuforums.org/show ... t=dpkg-buildpackage
  1. $ mkdir cleartype && cd cleartype
  2. $ mkdir patch debs
  3. Copy following patches to patch dir:
  4. freetype-2.2.1-subpixel-disable-quantization.diff
  5. libcairo-1.2.4-lcd-cleartype-like.diff
  6. libxft-2.1.8.2-lcd-cleartype-like.diff
  7. Satify the dependances:
  8. $ sudo apt-get install build-essential devscripts fakeroot
  9. $ sudo apt-get build-dep libcairo2 libxft2 freetype
复制代码
  1. 1. patch libcairo2 and build package
  2. $ mkdir libcairo2 && cd libcairo2
  3. $ apt-get source libcairo2
  4. $ cd libcairo-1.2.4
  5. $ dch -i
  6. something like below:
  7.   * David Turner's ClearType-like LCD filtering patch and fix
  8.     Cairo to enable light-hinted subpixel rendering
  9. ctrl + o save and quit
  10. $ patch -p1 <../../patch/libcairo-1.2.4-lcd-cleartype-like.diff
  11. patching file src/cairo-ft-font.c
  12. $ dpkg-buildpackage -rfakeroot -us -uc
  13. $ cp ../libcairo2_1.2.4-2_i386.deb ../../debs/
  14. $ cp ../libcairo2-dev_1.2.4-2_i386.deb ../../debs/
复制代码
  1. 2. patch libxft2 and build package
  2. $ mkdir libxft2 && libxft2
  3. $ apt-get source libxft2
  4. $ cd xft-2.1.8.2
  5. $ dch -i
  6. something like below:
  7.   * David Turner's ClearType-like LCD filtering patch and fix
  8.     xft to enable light-hinted subpixel rendering
  9. ctrl + o save and quit
  10. $ patch -p1 <../../patch/libxft-2.1.8.2-lcd-cleartype-like.diff
  11. patching file src/xftfreetype.c
  12. patching file src/xftglyphs.c
  13. $ dpkg-buildpackage -rfakeroot -us -uc
  14. $ cp ../libxft2_2.1.8.2-9_i386.deb ../../debs/
  15. $ cp ../libxft-dev_2.1.8.2-9_i386.deb ../../debs/
复制代码
  1. 3. patch freetype and build package
  2. $ mkdir freetype && cd freetype
  3. $ apt-get source freetype
  4. $ rm -rf freetype-2.2.1
  5. $ tar xvf freetype_2.2.1.orig.tar.gz
  6. $ cd freetype-2.2.1.orig
  7. $ tar xvjf freetype-2.2.1.tar.bz2
  8. $ cd freetype-2.2.1
  9. $ patch -p1 </path-to-cleartype/patch/freetype-2.2.1-subpixel-disable-quantization.diff
  10. patching file src/autofit/aflatin.c
  11. $ cd .. &&  rm -rf freetype-2.2.1.tar.bz2
  12. $ tar cvjf freetype-2.2.1.tar.bz2 ./freetype-2.2.1/
  13. $ rm -rf freetype-2.2.1
  14. $ cd .. && rm -rf freetype_2.2.1.orig.tar.gz
  15. $ tar cvzf freetype_2.2.1.orig.tar.gz freetype-2.2.1.orig
  16. $ rm -rf freetype-2.2.1.orig
  17. $ md5sum freetype_2.2.1.orig.tar.gz
  18. 8e5c64c0fb8db2a8fd52b02179ea9896  freetype_2.2.1.orig.tar.gz
  19. $ ls -l freetype_2.2.1.orig.tar.gz
  20. -rw-r--r-- 1 root src 1450823 2006-08-24 00:42 freetype_2.2.1.orig.tar.gz
  21. $ vi freetype_2.2.1-2.dsc
  22. Files:
  23. 8e5c64c0fb8db2a8fd52b02179ea9896 1450823 freetype_2.2.1.orig.tar.gz
  24. $ dpkg-source -x freetype_2.2.1-2.dsc
  25. $ cd freetype-2.2.1
  26. $ dch -i
  27.   * Disable quantization when subpixel is on
  28. $ dpkg-buildpackage -rfakeroot -us -uc
  29. $ cp ../libfreetype6_2.2.1-3_i386.deb ../../debs/
  30. $ cp ../libfreetype6-dev_2.2.1-3_i386.deb ../../debs/
复制代码
  1. Install the patched packages:
  2. $ cd cleartype/debs
  3. $ dpkg -i *.deb
复制代码

Last step and it is important if you want to get the beautiful fonts:

run gnome Font Preferences, goto Detail panel:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-8-24 13:54:50 | 显示全部楼层
赞一个:)

:)
回复 支持 反对

使用道具 举报

发表于 2006-8-24 14:28:44 | 显示全部楼层
补一条
如何hold住这几个包
  1. #dpkg --set-selections
  2. libfreetype6 hold
  3. libfreetype6-dev hold
  4. libxft2  hold
  5. libcairo2  hold
复制代码

Ctrl + d
退出
这样升级系统时就不会升级这几个包
回复 支持 反对

使用道具 举报

发表于 2006-9-9 01:50:45 | 显示全部楼层
我用的ubuntu 6.06,打上这个补丁后ctrl+Backspace重新启动X,但是没有效果,请问为什么阿?我之前完全参照搂主那个用xp字体美化界面的贴子设置了一下界面,有影响吗?
回复 支持 反对

使用道具 举报

发表于 2006-12-1 09:25:25 | 显示全部楼层
请问楼主:
$ mkdir cleartype && cd cleartype
$ mkdir patch debs
mkdir执行时是在哪个目录下?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表