RH8.0 Fonts Setup


Table of Contents

Setup Chinese TrueType fonts for RH8 
Strategy 
Files 
References 
Chinese TrueType fonts trial and errors 
xmms fonts 
gb2312.1980 is not enough 
xtt for xfs 
Only gb2312.1980 works 
Chinese TrueType fonts won't work with xfs 
It's all about the fonts 
It's all about the fonts 

Setup Chinese TrueType fonts for RH8 

Strategy 

Strategy:
  • Use as much as possible from default RH8 installation
  • Rendering the Chinese TrueType fonts directly from XFree, using the default freetype module, because xfs can't handle Chinese fonts.
  • Preserves the xfs for other applications (i.e, kde & gnome).

So, basically, all modification done in /etc/X11/XF86Config is enough.

Files 

Example 1. File /etc/X11/XF86Config:

Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath   "/fonts/TrueType/win_zh_CN.0"
    FontPath   "/usr/share/fonts/zh_CN/TrueType"
    FontPath   "/usr/share/fonts/zh_TW/TrueType"
    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, can also use xtt
        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 &