Table of Contents
Strategy: rendering the Chinese TrueType fonts directly from XFree8 with the 'xtt' module, while preserving the xfs and xft for other applications (i.e, kde & gnome). So, basically, all modification done in /etc/X11/XF86Config is enough.
/etc/X11/XF86Config:
Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "/export/fonts/TrueType/win_zh_CN.0" FontPath "unix/:7100" EndSection Section "Module" Load "dbe" # Double-buffering Load "dri" # Direct rendering infrastructure # Load "GLcore" # OpenGL support # Load "glx" # OpenGL X protocol interface Load "extmod" # Misc. required extensions # Load "v4l" # Video4Linux, not in default setting # 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, use xtt instead Load "xtt" # TrueType font handler Load "type1" # Adobe Type 1 font handler, not in default setting Load "fbdevhw" EndSection
Quit xwindow then start it gain. Note that restarting xwindow manager won't help.
xfd -fn -microsoft-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 & xfd -fn -microsoft-simsun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0 &