>I'm using RedHat 6.0. To get more fonts in The Gimp and Netscape, I
>installed a true-type font server along with a bunch of fonts. It works
>great but I have to manually start it each time:
>xfstt&
>xset fp+ unix/:7100
>xset fp rehash
Hello Steve,
I have the script attached below in my /etc/rc.d/init.d/xfstt file, and two
links to it in runlevel 2 named S20xfstt, K20xfstt. Works perfect. Adjust the
path assignments for your needs. Remember if you install the newest version of
xfstt the port has changed to 7101.
The font path can be set in your /etc/Xf86Config file, section "Files":
FontPath "unix/:7101"
Try it !
---------------------------- /etc/rc.d/init.d/xfstt -------------------
#!/bin/sh
#
# /sbin/init.d/xfstt
#
# Script to start and stop font-server xfstt
#
#
#
. /etc/rc.config
XFSTT=/usr/X11R6/bin/xfstt
PORT=7101
TTDIR=/usr/share/fonts/truetype
test -x $XFSTT || exit 0
return=$rc_done
case "$1" in
start)
echo -n "Start Font Server Xfstt"
startproc $XFSTT --dir $TTDIR --port $PORT ||
return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Stop Font Server Xfstt"
killproc $XFSTT || return=$rc_failed
echo -e "$return"
;;
restart)
$0 stop
$XFSTT --dir $TTDIR --sync
$0 start
;;
*)
echo "Usage: /sbin/init.d/xfstt {start|stop|restart}"
exit 1
;;
esac
test "$return" = "$rc_done" || exit 1
exit 0
--
Eggert Ehmke