选择安装简体中文、繁体中文和英文的显示支持,缺省设置简体中文,并且启动选字符界面,打"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。