歡迎您光臨本站 註冊首頁

Fedora完美的美化

←手機掃碼閱讀     火星人 @ 2014-03-24 , reply:0

我的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 <[email protected]>
#

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
-->

<!-- Font directory list configured on Wed Apr 23 20:50:03 CST 2003 -->

<!-- <dir>/usr/local/zhfonts/simsun</dir>-->
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>=============加的
<dir>~/.fonts</dir>

<!--
<!--
Mark common families with their generics so we'll get
something reasonable
-->

<!--
Serif faces
-->
<alias>
<family>Tahoma</family>============加入
<family>Simsun</family>=============加入
<family>Bitstream Vera Serif</family>
<family>Times</family>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>DongWen FangSong</family>
<family>DongWen HeiTi</family>
<family>DongWen KaiTi</family>
<family>DongWen SongTi</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>Tahoma</family>=============加入
<family>Simsun</family>==============加入
<family>Bitstream Vera Sans</family>
<family>Helvetica</family>
<family>Arial</family>
<family>Verdana</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>DongWen FangSong</family>
<family>DongWen HeiTi</family>
<family>DongWen KaiTi</family>
<family>DongWen SongTi</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>NSimsun</family>
<family>Tahoma</family>===============加入
<family>DongWen FangSong</family>
<family>DongWen HeiTi</family>
<family>DongWen KaiTi</family>
<family>DongWen SongTi</family>
<family>Bitstream Vera Sans Mono</family>
<family>Courier</family>
<family>Courier New</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<default><family>monospace</family></default>
</alias>
<!--
Provide required aliases for standard names
-->
<alias>
<family>serif</family>

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

</alias>
<alias>
<family>sans-serif</family>

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

</alias>
<alias>
<family>monospace</family>

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

</alias>

<!--
注意:<family>Tahoma</family>
<family>Simsun</family>這兩個一般要加在最前面,後面有的話請自行刪除。

8、在控制台字元下(如果在圖形界面里會異常,但也不影響,最好照做)
以根用戶打入命令:cp /usr/lib/libXft.so* /usr/X11R6/lib
9、重起,在KDE和GNOME中選擇字體,我用tahoma.ttf效果很好。

[火星人 ] Fedora完美的美化已經有700次圍觀

http://coctec.com/docs/linux/show-post-132891.html