linux 中安装中文字体
??????LANG=”zh_CN.GB18030″
???第二步:
???其次我们要配置显卡文件(/etc/X11/XF86Config)。X中可以支持TrueType字体(一种可缩放的矢量字体,这些字体需要字体渲染引擎来读取。字体渲染引擎有很多种,xtt这种据说对中文支持很好,我们现在就是要配置指定用xtt这个字体渲染引擎去/usr/share/fonts/default/TrueType目录读取上面的三个字体文件的信息(如大小,分辩率,编码等)。修改其中的Section “Module”处,加入Load???“xtt”让其用使用xtt这个引擎,并注释掉与其冲突的#Load?”freetype”与 #Load?”type1″。另外,在Section “Files”处加入FontPath?????“/usr/share/fonts/default/TrueType”一句让xtt引擎去这个目录去找字库文件。修改后的部分文件如下:
??? Section “Files”
# RgbPath is the location of the RGB database.?Note, this is the name of the
# file minus the extension (like “.txt” or “.db”).?There is normally
# no need to change the default.
?
# 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.
?
??? RgbPath????? “/usr/X11R6/lib/X11/rgb”
??? FontPath???? “unix/:7100”
??? FontPath?????<spa