操作系统:CentOS5.5

  1. 将Windows下的字体文件(如simsun.ttc, tahoma.ttf, tahomabd.ttf等) Copy到/usr/share/fonts/chinese/TrueType/simsun

  2. 编辑/etc/X11/fs/config, 加入字体路径

# where to look for fonts
catalogue = /usr/share/X11/fonts/misc:unscaled,
    /usr/share/X11/fonts/75dpi:unscaled,
    /usr/share/X11/fonts/100dpi:unscaled,
    /usr/share/X11/fonts/Type1,
    /usr/share/X11/fonts/TTF,
    /usr/share/fonts/default/Type1,
    ,   
    /usr/share/fonts/chinese/misc:unscaled,
    /usr/share/fonts/chinese/misc,
    /usr/share/fonts/chinese/TrueType/simsun, #字体路径
    /usr/share/fonts/chinese/TrueType