More detailed description xfonts.htm :
I would like to contribute a method to read Chinese fonts on the X-terminal
without the root privilege. The basic idea is to use "fs" to create
a private font server, and then use "xset" to append the font server to my
current font paths.
In my directory $home/w/wailun/xfonts/, I have already down-loaded the GB and BIG5
fonts according to the procedures described somewhere-else. I also put
other files in this directory. Here is the list of all files in my
$home/w/wailun/xfonts/ directory.
>ls
./ cns1hku16.pcf fonts.dir gb16st.pcf hz.conf
../ cns2hku16.pcf gb16fs.pcf hz
All *.pcf's are down-loaded font files. 'fonts.dir' is generated
by 'mkfontdir'. Besides, 'hz.conf' is the configuration file for the
private font server. The following is the list of 'hz.conf'.
#
# sample font server configuration file
#
# allow a max of 5 clients to connect to this font server
client-limit = 5
# when a font server reaches its limit, start up a new one
clone-self = on
# where to look for fonts
#
#Change FULL-PATH-OF-MY-HOME-DIRECTORY to my actual home directory,
#for example, /users/chinese
catalogue = FULL-PATH-OF-MY-HOME-DIRECTORY/xfonts
# in 16 points, decipoints
default-point-size = 160
# 72 x 72 and 75 x 75
default-resolutions = 72,72,75,75
You must change 'FULL-PATH-OF-MY-HOME-DIRECTORY' in 'hz.conf'
to the actual home path. Otherwise 'fs' would not work.
A shell script 'hz' is used to install the font server and append it
to the font paths. The following is the list of 'hz' script.
#! /bin/sh
PORTNUM=6891
fs -config hz.conf -port $PORTNUM &
xset fp+ tcp/`hostname`:$PORTNUM
You may need to re-define the variable PORTNUM in case that this port
is being used by other programs. Remember, PORTNUM must be
larger than 1024.
After you put 'hz' and 'hz.conf' in $home/w/wailun/xfonts/, just type
'/bin/sh hz'
at the unix prompt to append the Chinese font to your font paths.
Good luck.

wll@uni.de
|