|
发表于 2003-4-3 17:48:44
|
显示全部楼层
说一点我“美化”Rh9的经验吧:
工作都在no X的状态下进行:
telinit 1
就是参考本版那个rh8终极美化,然后需要注意的是最好
不要使用那个redhat8.tar.gz,自己去下(已经用了的就照下面再做一遍就行了)
http://www.kde.gr.jp/~akito/patc ... x-cjk-20030330.diff
http://www.kde.gr.jp/~akito/patc ... x-cjk-20021216.diff
以及
http://fontconfig.org/release/fcpackage.2_1.tar.gz
来升级一下自己的fontconfig:
tar xzf fcpackage.2_1.tar.gz
cd fcpackage.2_1/fontconfig
patch -p1 < ../fcpackage.2_1-fontconfig-fix-cjk-20030330.diff
./configure --prefix=/usr
make ; make install
cd ..
cd fcpackage.2_1/Xft
patch -p1 < ../fcpackage.2_1-Xft-2.0.1-fix-cjk-20021216.diff
./configure --prefix=/usr
make ; make install
cd /usr/X11R6/lib
rm -f libXft.so.2.1
cp libXft.so.2.0 libXft.so.2.1
chattr +i libXft.so.2.1
以及freetype:
http://www.kde.gr.jp/~akito/patc ... 2.1.3-ttcmap4.patch
http://prdownloads.sourceforge.n ... c2.tar.bz2?download
然后
tar xjf freetype-2.1.4rc2.tar.bz2
cd freetype-2.1.4rc2
patch -p1 < ../freetype-2.1.1-ttcmap4.patch
./configure --prefix=/usr
make ; make install
我的simsun是放在/usr/share/fonts/zh_CN/TrueType/simsun下面的。
# pwd
/usr/share/fonts/zh_CN/TrueType/simsun
# ls
encodings.dir fonts.cache-1 fonts.dir fonts.scale simsun.ttc
# cat fonts.dir
51
simsun.ttc -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttc -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
sw=1:bw=0.5:simsun.ttc -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-1
ab=y:sw=1:bw=0.5:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:sw=1:bw=0.5:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:sw=1:bw=0.5:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:ab=y:sw=1:bw=0.5:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:ab=y:sw=1:bw=0.5:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:sw=1:bw=0.5:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:sw=1:bw=0.5:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:ab=y:sw=1:bw=0.5:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:ab=y:sw=1:bw=0.5:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttc -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-gbk-0
ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gbk-0
simsun.ttc -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso10646-1
ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-iso10646-1
ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-iso10646-1
ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-iso10646-1
ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-iso10646-1
ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-iso10646-1
ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-iso10646-1
ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-iso10646-1
ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-iso10646-1
ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-iso10646-1
simsun.ttc -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb18030.2000-0
ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb18030.2000-0
ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb18030.2000-0
ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb18030.2000-0
ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb18030.2000-0
ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb18030.2000-0
ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb18030.2000-0
ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb18030.2000-0
ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb18030.2000-0
fonts.scale的内容和fonts.dir相同。
encodings.dir就是/usr/X11R6/lib/X11/fonts/encodings/encodings.dir
注意最好chattr +i fonts.dir fonts.scale encodings.dir以免其它程序改变这里面的内容。
我的XFree86Config里面相应内容:
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/share/fonts/zh_CN/TrueType/simsun"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "xtt"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
# Load "freetype"
Load "type1"
Load "dri"
我的/etc/fonts/fonts.conf见附件。
$ cat /etc/gtk/gtkrc.zh_CN
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#
style "gtk-default-zh-cn" {
# fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
# -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1,\
-*-*-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn" |
|