|
针对矢量字体做的设置,喜欢点阵字体的朋友请绕道
1. 打LCD补丁(注:现在的testing和sid的cairo都不用打补丁了,请直接跳到字体设置)
方法一:添加 http://mozilla.debian.net 源,升级到新版的cairo(这个源为各个Debian发行版提供新版的iceweasel)
安装方法请移步到:http://mozilla.debian.net/
方法二:自己打LCD补丁- mkdir build_cairo && cd build_cairo
- apt-get source cairo
- sudo aptitude build-dep cairo
- sudo aptitude install devscripts
- wget http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_1.8.10-2ubuntu1.debian.tar.gz
- tar xvf cairo_1.8.10-2ubuntu1.debian.tar.gz
- cd cairo-1.8.10 && patch -Np1 <../debian/patches/04_lcd_filter.patch
- dch -l local "LCD Patch"
- fakeroot debian/rules binary
- cd .. && sudo dpkg -i *.deb
复制代码
2. 字体设置
~/.fonts.conf 里添加下面内容(~/.fonts.conf 默认没有需要自己新建)- <?xml version='1.0'?>
- <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
- <fontconfig>
- <match target="font">
- <edit mode="assign" name="rgba">
- <const>rgb</const>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="hinting">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="hintstyle">
- <const>hintslight</const>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="antialias">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="lcdfilter">
- <const>lcddefault</const>
- </edit>
- </match>
- </fontconfig>
复制代码
注意: gnome用户需要参考下面第一张截图的设置
gnome字体设置见第一张图
微软雅黑见第二张
文泉驿微米黑见第三张 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|