全部博文(96)
分类: LINUX
2010-11-03 12:59:24
# yum install fonts-chinese.noarch
2. 指定中文字体路径
# vim /etc/X11/fs/config
catalogue = /usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/100dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
,
/usr/share/fonts/chinese/misc:unscaled,
/usr/share/fonts/chinese/misc,
/usr/share/fonts/chinese/TrueType
3. 从一个字体文件目录中创建 fonts.dir
# mkfontscale /usr/share/fonts/chinese/misc/
# mkfontdir /usr/share/fonts/chinese/misc/
# mkfontscale /usr/share/fonts/chinese/ TrueType/
# mkfontdir /usr/share/fonts/chinese/TrueType/
4. 查看locale
# locale -a |grep zh
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
zh_HK
zh_HK.big5hkscs
zh_HK.utf8
zh_SG
zh_SG.gb2312
zh_SG.gbk
zh_SG.utf8
zh_TW
zh_TW.big5
zh_TW.euctw
zh_TW.utf8
5. 设置loacle为中文环境
1)
# vim /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
2). 设置loacle为英文环境
# vim /etc/sysconfig/i18n
LANG="en_US.UTF-8"
6. 重启X window
# gdm-restart
7. 设置此服务器为X字体服务器
# vim /etc/X11/fs/config