Linux中文化之如何在Redhat7.2中显示粗体、斜体中文

王朝system·作者佚名  2008-05-19
宽屏版  字体: |||超大  

选择安装简体中文、繁体中文和英文的显示支持,缺省设置简体中文,并且启动选字符界面,打"startx"可以进入kde。这样在kde中能显示和输入中文了。编辑/etc/X11/XF86Config-4文件,象下面这样。

# Multiple FontPath entries are allowed (they are concatenated together)

# By default, Red Hat 6.0 and later now use a font server independent of

# the X server to render fonts.

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 "xtt"

......

EndSection

退出kde图形界面到字符界面禁用xfs服务器。运行setup命令,在服务项中中止xfs随系统运行的特性。之所以禁用xfs服务器主要是因为xfs会自动更新字体目录下的fonts.dir文件,从而影响我们所做的修改。

编辑/usr/share/fonts/zh_CN/TrueType/fonts.dir如下

8

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

修改/usr/share/fonts/zh_CN/TrueType/fonts.scale文件和fonts.dir一样。再重新启动kde,你就能在koffice中显示粗体和斜体的GB码的中文啦。当然粗体和斜体的打印还不行,要修改qt原代码,请大家耐心等待。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有