LinuxSir.cn,穿越时空的Linuxsir!

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

debian字体设置笔记

[复制链接]
发表于 2011-4-4 22:09:31 | 显示全部楼层 |阅读模式
针对矢量字体做的设置,喜欢点阵字体的朋友请绕道

1. 打LCD补丁(注:现在的testing和sid的cairo都不用打补丁了,请直接跳到字体设置)

方法一:添加 http://mozilla.debian.net 源,升级到新版的cairo(这个源为各个Debian发行版提供新版的iceweasel)

安装方法请移步到:http://mozilla.debian.net/

方法二:自己打LCD补丁
  1. mkdir build_cairo && cd build_cairo
  2. apt-get source cairo
  3. sudo aptitude build-dep cairo
  4. sudo aptitude install  devscripts
  5. wget http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_1.8.10-2ubuntu1.debian.tar.gz
  6. tar xvf cairo_1.8.10-2ubuntu1.debian.tar.gz
  7. cd cairo-1.8.10 && patch -Np1 <../debian/patches/04_lcd_filter.patch
  8. dch -l local "LCD Patch"
  9. fakeroot debian/rules binary
  10. cd .. && sudo dpkg -i *.deb
复制代码


2. 字体设置
~/.fonts.conf 里添加下面内容(~/.fonts.conf 默认没有需要自己新建)
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3. <fontconfig>
  4. <match target="font">
  5.   <edit mode="assign" name="rgba">
  6.    <const>rgb</const>
  7.   </edit>
  8. </match>
  9. <match target="font">
  10.   <edit mode="assign" name="hinting">
  11.    <bool>true</bool>
  12.   </edit>
  13. </match>
  14. <match target="font">
  15.   <edit mode="assign" name="hintstyle">
  16.    <const>hintslight</const>
  17.   </edit>
  18. </match>
  19. <match target="font">
  20.   <edit mode="assign" name="antialias">
  21.    <bool>true</bool>
  22.   </edit>
  23. </match>
  24. <match target="font">
  25.   <edit mode="assign" name="lcdfilter">
  26.    <const>lcddefault</const>
  27.   </edit>
  28. </match>
  29. </fontconfig>
复制代码

注意: gnome用户需要参考下面第一张截图的设置

gnome字体设置见第一张图
微软雅黑见第二张
文泉驿微米黑见第三张

本帖子中包含更多资源

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

x
发表于 2011-4-5 09:30:12 | 显示全部楼层
很好,学习了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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