歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

Mandrake9完全美化

  這是在"connermo"的漢化文章指導下完成.     1. 建立目錄: mkdir /usr/X11R6/lib/X11/fonts/TrueType     2.CP windowsXP下的simsun.ttc、tahoma.ttf及tahomabd.ttf到以上目錄,將simsun.ttc改為ttf字體.   生成:fonts.dir (這個命令:mkttfdir > fonts.dir)修改使其與如下相似:     24   simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0   ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0   ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0   ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0   tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1   ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1   tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1   ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1   simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0   ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-gbk-0   ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-gbk-0   ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-gbk-0   simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15   ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15   ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15   ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15   simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15   ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15   ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15   ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15   simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1   ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1   ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1   ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-iso10646-1     然後 cp fonts.dir fonts.scale,或者 cat fonts.dir > fonts.scale     3.修改/etc/X11/XF86Config-4,添加:   FontPath "/usr/X11R6/lib/X11/fonts/TrueType"注意要添加在unix/:-1這一行前面。   再在module段中添加:     Load "xtt"     (注意注釋掉"load type1"和"load freetype"模塊. )     相這樣:   #load type1   #load freetype     4.然後拷貝編碼文件 encodings.dir 到目錄裡來.     cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/TrueType     5.修改/etc/gtk/gtkrc.zh_CN   把fontset內改為 "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,   -*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*"     6.為在Gnome2中顯simsun字體 ( 這是younker兄的指教)   首先要解決的問題是確定沒有使用xft.   修改/etc/profile.d/下面的gtk2.sh文件,把GDK_USE_XFT="1" 改成 GDK_USE_XFT="0"   然後修改/etc/pango/pangox.alias文件,看看它裡面的內容你就知道該怎麼做了,把你得simsun字體放到每種字體的列表的前面就可以了 .     這是我的:     # File defining aliases of PangoFontDescription to X font set   #   # family style variant weight stretch XLFD     sans normal normal normal normal \   "-misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0,\   -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1,\   -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0,\   -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15,\   -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15,\   -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1,\   -*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*,\   -*-gulim-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0,\   -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\   -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\   -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\   -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\   -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\   -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\   -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\   -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\   -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\   -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\   -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\   -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\   -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\   -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"     sans italic normal normal normal \   "-misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0,\   -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1,\   -misc-SimSun-medium-i-normal--0-0-0-0-p-0-gbk-0,\   -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15,\   -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15,\   -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1,\   -*-helvetica-medium-o-normal--*-*-*-*-*-*-*-*,\   -*-gulim-medium-o-normal--*-*-*-*-*-*-ksc5601.1987-0,\   -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\   -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\   -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\   -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\   -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\   -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\   -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\   -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\   -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\   -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\   -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\   -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\   -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\   -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"     sans normal normal bold normal \   "-misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0,\   -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1,\   -misc-SimSun-bold-r-normal--0-0-0-0-p-0-gbk-0,\   -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15,\   -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15,\   -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1,\   -*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*,\   -*-gulim-bold-r-normal--*-*-*-*-*-*-ksc5601.1987-0,\   -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\   -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\   -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\   -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\   -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\   -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\   -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\   -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\   -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\   -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\   -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\   -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\   -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\   -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"     sans italic normal bold normal \   "-misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0,\   -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1,\   -misc-SimSun-bold-i-normal--0-0-0-0-p-0-gbk-0,\   -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15,\   -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15,\   -misc




Copyright © Linux教程網 All Rights Reserved