X Fonts Quick-Refs 

XFree86 rendering 

Configure files 

Example: File /etc/X11/XF86Config:
Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath   "/export/fonts/TrueType/win_zh_CN.0"
    FontPath   "unix/:7100"
EndSection

Use 'xset +fp' and 'xset -fp' to add or remove font directories temporally.

Reset 

To restore the default font path:

xset fp default

To have the server reread font databases:

xset fp rehash

Checking 

xset -fp /fonts/TrueType/win_zh_CN.0
xset -q
xlsfonts | grep microsoft
xset +fp /fonts/TrueType/win_zh_CN.0
!xls
xlsfonts | grep sim

xfs rendering 

Checking 

fslsfonts

or

FONTSERVER=unix/:7100 fslsfonts

Configure files 

/usr/X11R6/lib/X11/fs/config 

/usr/X11R6/lib/X11/fs/config is for xfs. If the new directory is not added to it, the xlsfonts won't show it.

It points to /etc/X11/fs/config.

Use 'chkfontpath' to add (-a) or remove (-r) font directories permanently (into /usr/X11R6/lib/X11/fs/config).

/etc/fonts/fonts.conf 

/etc/fonts/fonts.conf is for xft. It will not affect the result of xlsfonts, but it tells Xft libraries where to find the newly installed fonts.

References 

http://www.tldp.org/HOWTO/mini/FDU/x-4x.html http://www.linuxaid.com.cn/articles/9/2/926447146.shtml http://www.linuxaid.com.cn/articles/5/5/554079777.shtml http://www.aucs.org/rpmcenter/RedHat_72_73_Chinese_mini-HOWTO.html