作者: 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