在Redhat Linux中显示粗体、斜体中文(转)

在Redhat Linux中显示粗体、斜体中文(转)[@more@]选择安装简体中文、繁体中文和英文的显示支持,缺省设置简体中文,并且启动选字符界面,打"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。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10617731/viewspace-947958/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10617731/viewspace-947958/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值