|
|
|
Linux中文化之如何在Redhat7.2中显示粗体、斜体中文
作者:佚名 来源:Linux 宝库 点击: 日期:2006-12-07 |
|
-->
选择安装简体中文、繁体中文和英文的显示支持,缺省设置简体中文,并且启动选字符界面,打"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原代码,请大家耐心等待。
|
|
|
|
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【论坛讨论】 |
相关文章: |
|
|
文章评论:(条) |
|
|
|
|
责任编辑:一分 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|