作者: dl59
來自: www.Linuxsir.com
摘要: COSIX 3.1 使用simsun字體的美化方案
我覺得中軟3.1,是國內兼容最好的linux.
我寫一個美化方案
COSIX 3.1 美化
1. 建立目錄: mkdir /usr/X11R6/lib/X11/fonts/zh_CN_fonts
2.CP windowsXP下的simsun.ttc、SimSun18030.ttc及gulim.ttc到以上目錄,將ttc改為ttf字體.
生成:fonts.dir (這個命令:ttmkfdir > fonts.dir)修改使其與如下相似:
52
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
SimSun18030.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
ai=0.3:SimSun18030.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-c-0-gb18030.2000-0
ds=y:SimSun18030.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-c-0-gb18030.2000-0
ds=y:ai=0.3:SimSun18030.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-c-0-gb18030.2000-0
gulim.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:gulim.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-p-0-iso8859-1
gulim.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:gulim.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-p-0-iso8859-1
SimSun18030.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-p-0-gb18030.2000-1
ai=0.3:SimSun18030.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-p-0-gb18030.2000-1
ds=y:SimSun18030.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-p-0-gb18030.2000-1
ds=y:ai=0.3:SimSun18030.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-p-0-gb18030.2000-1
SimSun18030.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:SimSun18030.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-p-0-fcd8859-15
ds=y:SimSun18030.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-p-0-fcd8859-15
ds=y:ai=0.3:SimSun18030.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-p-0-fcd8859-15
SimSun18030.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:SimSun18030.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-p-0-iso8859-15
ds=y:SimSun18030.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-p-0-iso8859-15
ds=y:ai=0.3:SimSun18030.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-p-0-iso8859-15
SimSun18030.ttf -misc-SimSun18030-medium-r-normal--0-0-0-0-c-0-iso10646-1
ai=0.3:SimSun18030.ttf -misc-SimSun18030-medium-i-normal--0-0-0-0-c-0-iso10646-1
ds=y:SimSun18030.ttf -misc-SimSun18030-bold-r-normal--0-0-0-0-c-0-iso10646-1
ds=y:ai=0.3:SimSun18030.ttf -misc-SimSun18030-bold-i-normal--0-0-0-0-c-0-iso10646-1
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
gulim.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:gulim.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1
gulim.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:gulim.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
simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
SimSun18030.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
然後 cp fonts.dir fonts.scale,或者 cat fonts.dir > fonts.scale
然後拷貝編碼文件 encodings.dir 到目錄裡來.
cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/zh_CN_fonts
3.修改/etc/X11/XF86Config-4,添加:
FontPath "/usr/X11R6/lib/X11/fonts/zh_CN_fonts"
4. 修改 XF86Config-4.sm 添加:
FontPath "/usr/X11R6/lib/X11/fonts/zh_CN_fonts"
------------------------------------------------------------------------------
附錄
xmms的中文顯示:
-*-*-medium-r-normal--14-*-*-*-*-*-gb18030.2000-0
然後 cp fonts.dir fonts.scale,或者 cat fonts.dir > fonts.scale
然後拷貝編碼文件 encodings.dir 到目錄裡來.
cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/zh_CN_fonts
3.修改/etc/X11/XF86Config-4,添加:
FontPath "/usr/X11R6/lib/X11/fonts/zh_CN_fonts"
4. 修改 XF86Config-4.sm 添加:
FontPath "/usr/X11R6/lib/X11/fonts/zh_CN_fonts"
------------------------------------------------------------------------------
附錄
xmms的中文顯示:
-*-*-medium-r-normal--14-*-*-*-*-*-gb18030.2000-0