#加载 X-TrueType 字体解释器。
Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
Load "v4l" # Video4Linux
Load "xtt" ;加入这一行 (关键)
# Load "pex5" # PHIGS for X 3D environment (obsolete)
# Load "record" # X event recorder
# Load "xie" # X Image Extension (obsolete)
# You only need the following two modules if you do not use xfs.
# Load "freetype" # TrueType font handler
# Load "type1" # Adobe Type 1 font handler
EndSection
(4)修改 gtk 的字体定义
#vi /etc/gtk/gtkrc.zh_CN
修改后的内容如下:
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga
#
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#下面的为添加的部分
export LC_ALL=zh_CN.GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=@im=Chinput
接上面的步骤
#switchdesk KDE ;切换到 KDE 桌面
#startx
打开 Preferences->ersonalization->;Country & Language
把国家改为中国(CN)
把语言改为简体中文(zh_CN.GB2312.1980)
把字符集改为gb2312.1980)
打开 Look & Feel->;Fonts
设置字体:
control center 中
look&feel --->; fonts