首页 | 登录 | 注册 | 会员中心 | 网站地图
  当前位置:首页 >> 网管 >> 操作系统 >> Unix/Linux >> 在Redhat Linux中显示粗体、斜体中文
在Redhat Linux中显示粗体、斜体中文
来源:天极网 作者: 发布时间:2008-09-18
选择安装简体中文、繁体中文和英文的显示支持,缺省设置简体中文,并且启动选字符界面,打"startx"可以进入kde。这样在kde中能显示和输入中文了。编辑/etc/X11/XF86Config-4文件,象下面这样。
Section "Files" 
FontPath "unix/:7100" 
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" 
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" 
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" 
FontPath "/usr/X11R6/lib/X11/fonts/misc" 
FontPath "/usr/X11R6/lib/X11/fonts/Type1" 
FontPath "/usr/X11R6/lib/X11/fonts/Speedo" 
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic" 
FontPath "/usr/X11R6/lib/X11/fonts/CID" 
FontPath "/usr/X11R6/lib/X11/fonts/local" 
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1" 
FontPath "/usr/share/fonts/default/TrueType" 
FontPath "/usr/share/fonts/default/Type1" 
FontPath "/usr/share/AbiSuite/fonts" 
FontPath "/usr/share/fonts/ja/TrueType" 
FontPath "/usr/share/fonts/zh_CN/TrueType" 
FontPath "/usr/share/fonts/zh_TW/TrueType" 
EndSection 
Section "Module" 
...... 
Load "type1" 
Load "xtt" 
...... 
EndSection 
编辑/etc/X11/XftConfig文件,象下面这样。 
#dir "/usr/share/fonts/zh_CN/TrueType" 
编辑/usr/share/fonts/zh_CN/TrueType/fonts.dir如下 
20 
gkai00mp.ttf -arphic-ar pl kaitim gb-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 
ai=0.4:gkai00mp.ttf -arphic-ar pl kaitim gb-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 
ds=y:gkai00mp.ttf -arphic-ar pl kaitim gb-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 
ai=0.4:ds=y:gkai00mp.ttf -arphic-ar pl kaitim gb-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 
gbsn00lp.ttf -arphic-ar pl sungtil gb-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 
ai=0.4:gbsn00lp.ttf -arphic-ar pl sungtil gb-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 
ds=y:gbsn00lp.ttf -arphic-ar pl sungtil gb-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 
ai=0.4:ds=y:gbsn00lp.ttf -arphic-ar pl sungtil gb-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-ascii-0 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-gb18030.2000-0 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-gb18030.2000-1 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-gbk-0 
zysong.ttf -misc-ZYSong18030-bold-r-normal--0-0-0-0-c-0-iso10646-1 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-ascii-0 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb18030.2000-1 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gbk-0 
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-iso10646-1 
修改/usr/share/fonts/zh_CN/TrueType/fonts.scale文件和fonts.dir一样。在kde的console 字符终端中运行setup命令,在服务项中中止xfs随系统运行的特性。之所以禁用xfs服务器主要是因为xfs会自动更新字体目录下的 fonts.dir文件,从而影响我们所做的修改。再重新启动linux,你就能在koffice中显示粗体和斜体的GB码的中文啦。当然粗体和斜体的打印还不行,请大家耐心等待,或参与sourceforge.net/projects/fontmanager。
(责任编辑:IORI)
网友评论
评论加载中…
快速检索
推荐专题
漏洞扫描全搜索
Solaris 基础知识入门——专题
注册表 入门基础及修改技巧
网络故障排除专题
友情链接 | 欢迎投稿 | 杂志发行 | 广告报价 | 人才招聘 | 服务条款 | 免责声明 | 隐私保护 | 关于网管员世界
CopyRight © 2001-2008 [网管员世界 www.365master.com] All Rights Reserved.
《网管员世界》杂志,专为网管服务的刊物!