歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> Linux中文化之如何在Redhat7.2中顯示粗體、斜體中文

Linux中文化之如何在Redhat7.2中顯示粗體、斜體中文

日期:2017/2/27 14:22:43   编辑:更多Linux
  選擇安裝簡體中文、繁體中文和英文的顯示支持,缺省設置簡體中文,並且啟動選字符界面,打"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原代碼,請大家耐心等待。




Copyright © Linux教程網 All Rights Reserved