POSTIN
/bin/sh
if [ -x /usr/sbin/chkfontpath ]; then
/usr/sbin/chkfontpath -q -a /usr/share/fonts/ttf/gb2312
killall -USR1 xfs || killall -USR1 xtt || killall -USR1 xfsft
if [ -n "$DISPLAY" ]; then
xset fp rehash
fi
else
echo "you don't have a chkfontpath utility; you will need to manually"
echo "install the fonts into your TTF enabled font server"
fi
POSTUN
/bin/sh
# 0 means a real uninstall
if [ "$1" = "0" ]; then
[ -x /usr/sbin/chkfontpath ] && \
/usr/sbin/chkfontpath -q -r /usr/share/fonts/ttf/gb2312
fi
killall -USR1 xfs || killall -USR1 xtt || killall -USR1 xfsft
if [ -n "$DISPLAY" ]; then
xset fp rehash
fi