分页: 1 / 1

Debian如何使用Ubuntu的字体渲染?

发表于 : 2010-11-05 9:44
leung531
Ubuntu对哪几个包打了patch?重新编译后可直接用于Debian吗?

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2010-11-05 10:05
linlee

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2010-11-05 10:14
leung531
linlee 写了:http://acidjou.net16.net/?p=10
这里有介绍
你用什么关键字找到的……我搜了好久也没发现这个……

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2010-11-13 13:34
Yume
学习了...

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-24 1:01
sulow
网页失效了,
请问有人有保留吗?
多谢了。。

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-24 10:25
nmsfan
sulow 写了:网页失效了,
请问有人有保留吗?
多谢了。。

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-24 16:24
acid303
俺之前发到了linuxsir上了,这里转贴一下吧:

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用户需要参考下面第一张截图的设置
Screenshot-字体渲染细节.png
雅黑效果图.png

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-24 19:11
xxxcjr
马克思

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-25 0:31
sulow
多谢acid303兄,
刚折腾好ubuntu,等哪天心血来潮再重装debian试试吧。。 :em04

附上与ubuntu原始字体的对比图:
对比图
对比图
两者的差距微乎其微,应该可以忽略不计了。。
acid兄用的是雅黑??

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-06-25 0:56
sulow
仔细看还是可以看到一点点区别的。。
所以结论是洁癖的成分大一点。。
:em05

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2011-08-22 9:48
tangmumao_wefls
patches.ubuntu.com(从一年以前的Linux Format上找到的笨兔补丁网站)

Re: Debian如何使用Ubuntu的字体渲染?

发表于 : 2012-02-07 6:11
rediscover
Mark之。