红联Linux门户
Linux帮助

Fedora完美的美化

发布时间:2006-11-13 01:21:13来源:红联作者:philosophy
我的Fedora完美的美化总结,过程如下:
1、下载firefily的美化包,包括:
fontconfig-2.2.1-10.firefly.i386.rpm
fontconfig-devel-2.2.1-10.firefly.i386.rpm
freetype-2.1.7-1.firefly.i386.rpm
freetype-demos-2.1.7-1.firefly.i386.rpm
freetype-devel-2.1.7-1.firefly.i386.rpm
freetype-utils-2.1.7-1.firefly.i386.rpm
pango-1.2.5-10.firefly.i386.rpm
pango-devel-1.2.5-10.firefly.i386.rpm
Xft2-2.1.2-10.firefly.i386.rpm
(要下载请到他的站点下)
http://firefly.idv.tw/setfont-xft/Fedora/Core_1/RPMS/
2、以根用户(root)执行:rpm -ivh *.rpm --nodeps --force
3、从windows下拷贝 verdanab.ttf verdanaz.ttf mingliu.ttc tahomabd.ttf verdanai.ttf simsun.ttc tahoma.ttf verdana.ttf
至/usr/share/fonts/zh_CN/TrueType
其中mingliu可以完美显示繁体字。
4、编辑/etc/X11/XF86Config文件:
Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

# 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"-----加入
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
# Load "xtt"
Load "type1"
# Load "dri"
EndSection
对于xtt服务,可加可不加,显示粗斜体都正常。
5、编辑/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,\
-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
~
6、编辑/etc/gtk-2.0/gtkrc文件,如下:
#~/.gtkrc-2.0

style "user-font"
{
font_name="tahoma 9"
}
widget_class "*" style "user-font"
使之能很好地显示gtk程序,如xmms的字体就可以很漂亮了,呵……
还有要使所有用户都有读的权限,可使用命令:chmod a+r gtkrc
7、编辑/etc/fonts/fonts.conf文件(请自己找到相应位置进行修改):
Keith Packard
-->




/usr/share/fonts
/usr/X11R6/lib/X11/fonts=============加的
~/.fonts





Tahoma============加入
Simsun=============加入
Bitstream Vera Serif
Times
Times New Roman
Nimbus Roman No9 L
Luxi Serif
Kochi Mincho
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
DongWen SongTi
AR PL SungtiL GB
AR PL Mingti2L Big5
Baekmuk Batang
serif



Tahoma=============加入
Simsun==============加入
Bitstream Vera Sans
Helvetica
Arial
Verdana
Nimbus Sans L
Luxi Sans
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
DongWen SongTi
Kochi Gothic
AR PL KaitiM GB
AR PL KaitiM Big5
Baekmuk Dotum
sans-serif



NSimsun
Tahoma===============加入
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
DongWen SongTi
Bitstream Vera Sans Mono
Courier
Courier New
Andale Mono
Luxi Mono
Nimbus Mono L
monospace



serif

Tahoma==========加入
Simsun===========加入
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
DongWen SongTi
Bitstream Vera Serif
Times New Roman
Nimbus Roman No9 L
Luxi Serif
Times
Kochi Mincho
AR PL SungtiL GB
AR PL Mingti2L Big5
Baekmuk Batang



sans-serif

Tahoma==============加入
Simsun==============加入
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
Bitstream Vera Sans
Verdana
Nimbus Sans L
Luxi Sans
Arial
Helvetica
Kochi Gothic
AR PL KaitiM GB
AR PL KaitiM Big5
Baekmuk Dotum



monospace

NSimsun
Tahoma==========加入
DongWen FangSong
DongWen HeiTi
DongWen KaiTi
Bitstream Vera Sans Mono
Andale Mono
Courier New
Luxi Mono
Nimbus Mono L
Kochi Gothic
AR PL KaitiM GB
Baekmuk Dotum