Most likely you may already have some Chinese fonts sitting in your system. You can find GB fonts by
# xlsfonts | grep gb
-cclib-song-medium-r-normal--0-0-72-72-c-0-gb2312.1980-1
-cclib-song-medium-r-normal--16-160-72-72-c-160-gb2312.1980-1
-isas-fangsong ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
hanzigb13fs
hanzigb13st
hanzigb16fs
hanzigb16st
hanzigb24st
The last five fonts in this case are just the aliases of the first
five fonts. Or to find BIG5 fonts
# xlsfonts | grep big5
-kc-kai-medium-r-normal-fantizi-0-0-75-75-c-0-big5.eten.3.10-1
-kc-kai-medium-r-normal-fantizi-20-200-75-75-c-200-big5.eten.3.10-1
-kc-kai-medium-r-normal-fantizi-24-240-75-75-c-240-big5.eten.3.10-1
-kc-ming-medium-r-normal-fantizi-0-0-75-75-c-0-big5.eten.3.10-1
-kc-ming-medium-r-normal-fantizi-15-150-75-75-c-160-big5.eten.3.10-1
-kc-ming-medium-r-normal-fantizi-24-240-75-75-c-240-big5.eten.3.10-1
-uw-ming-medium-r-normal-fantizi-0-0-75-75-c-0-big5.eten.3.10-1
-uw-ming-medium-r-normal-fantizi-16-160-75-75-c-160-big5.eten.3.10-1
-uw-ming-medium-r-normal-fantizi-20-200-75-75-c-200-big5.eten.3.10-1
-uw-songti-medium-r-normal-fantizi-0-0-75-75-c-0-big5.eten.3.10-1
-uw-songti-medium-r-normal-fantizi-20-200-75-75-c-200-big5.eten.3.10-1
-uw-songti-medium-r-normal-fantizi-24-240-75-75-c-240-big5.eten.3.10-1
If you don't have any Chinese fonts installed or just want more fonts,
you may look into ftp.ifcss.org:/pub/software/fonts/
where
gb/bdf/
is for GB fonts, big5/bdf
is for BIG5 fonts.
Suppose you get BIG5 font eb5-24k2.bdf.gz
and GB font
gb24st.bdf.gz
. To build the fonts into .pcf
format
# gzip -cd eb5-24k2.bdf.gz | bdftopcf -t > eb5-24k2.pcf
# gzip -cd gb24st.bdf.gz | bdftopcf -t > gb24st.pcf
# compress *.pcf
Install the fonts into /usr/X11R6/lib/X11/fonts/misc
# mv *.pcf.Z /usr/X11R6/lib/X11/fonts/misc/
# cd /usr/X11R6/lib/X11/fonts/misc
# mkfontdir .
After installing the fonts, looking into the file fonts.dir
,
which now contains two lines
eb5-24k2.pcf.Z -kc-kai-medium-r-normal-fantizi-24-240-75-75-c-240-big5.eten.3.10-1
gb24st.pcf.Z -isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
You may need to make aliases for these fonts, which will save you a lot
of typing when bringing up Chinese software, add two lines to the file
fonts.alias
gb24st "-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0"
taipeik24 "-kc-kai-medium-r-normal-fantizi-24-240-75-75-c-240-big5.eten.3.10-1"
Now inform your X window system server by
# xset fp rehash
If everything goes well, you can use your new fonts now
# cxterm -GB -fn 12x24 -fh gb24st &
HBF fonts contain header files and bitmap font files. You need to get both
header file and font files to install one HBF font. HBF fonts are in
ftp.ifcss.org:/pub/software/fonts
.
Suppose you want to use font ccfs24.hbf
, a GB, FangSong,
Jianti font, you should get three files ccfs24.hbf
,
cclib.n24
and ccsys.24
. The file 00index.txt
in
the ifcss fonts directory gives you filenames of each HBF font.