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

最大的社区版本,Ubuntu的发源地
回复
头像
leung531
帖子: 51
注册时间: 2009-03-03 13:32
联系:

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

#1

帖子 leung531 » 2010-11-05 9:44

Ubuntu对哪几个包打了patch?重新编译后可直接用于Debian吗?
windows 7 & Ubuntu 10.04
thinkpad sl400 2743bc5 + intel core2 t6570 + DDR2 4G + 250G
头像
linlee
帖子: 1132
注册时间: 2007-10-20 11:30

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

#2

帖子 linlee » 2010-11-05 10:05

头像
leung531
帖子: 51
注册时间: 2009-03-03 13:32
联系:

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

#3

帖子 leung531 » 2010-11-05 10:14

linlee 写了:http://acidjou.net16.net/?p=10
这里有介绍
你用什么关键字找到的……我搜了好久也没发现这个……
windows 7 & Ubuntu 10.04
thinkpad sl400 2743bc5 + intel core2 t6570 + DDR2 4G + 250G
头像
Yume
帖子: 1015
注册时间: 2010-05-24 12:16

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

#4

帖子 Yume » 2010-11-13 13:34

学习了...
sulow
帖子: 69
注册时间: 2006-04-24 0:36

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

#5

帖子 sulow » 2011-06-24 1:01

网页失效了,
请问有人有保留吗?
多谢了。。
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

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

#6

帖子 nmsfan » 2011-06-24 10:25

sulow 写了:网页失效了,
请问有人有保留吗?
多谢了。。
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
acid303
帖子: 547
注册时间: 2009-04-03 16:06

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

#7

帖子 acid303 » 2011-06-24 16:24

俺之前发到了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
头像
xxxcjr
帖子: 102
注册时间: 2007-01-01 9:03

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

#8

帖子 xxxcjr » 2011-06-24 19:11

马克思
sulow
帖子: 69
注册时间: 2006-04-24 0:36

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

#9

帖子 sulow » 2011-06-25 0:31

多谢acid303兄,
刚折腾好ubuntu,等哪天心血来潮再重装debian试试吧。。 :em04

附上与ubuntu原始字体的对比图:
对比图
对比图
两者的差距微乎其微,应该可以忽略不计了。。
acid兄用的是雅黑??
sulow
帖子: 69
注册时间: 2006-04-24 0:36

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

#10

帖子 sulow » 2011-06-25 0:56

仔细看还是可以看到一点点区别的。。
所以结论是洁癖的成分大一点。。
:em05
头像
tangmumao_wefls
帖子: 2899
注册时间: 2011-02-11 14:09
系统: AnthonOS Next
来自: 在那不遥远的地方
联系:

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

#11

帖子 tangmumao_wefls » 2011-08-22 9:48

patches.ubuntu.com(从一年以前的Linux Format上找到的笨兔补丁网站)
rediscover
帖子: 3173
注册时间: 2010-01-13 23:26

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

#12

帖子 rediscover » 2012-02-07 6:11

Mark之。
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
回复