POSTIN
/bin/sh
{
FONTDIR=/usr/share/X11/fonts/misc
mkfontdir $FONTDIR
# NOTE: We add the ":unscaled" suffix to avoid ugly bitmap fonts.
/usr/sbin/chkfontpath -qa /usr/share/X11/fonts/misc:unscaled
# FIXME: This should only be done on upgrades.
# Remove the Speedo directory from xfs config as X.Org no longer provides
# Speedo font support.
/usr/sbin/chkfontpath -qr /usr/share/X11/fonts/Speedo
fc-cache $FONTDIR
}
# &> /dev/null || :
POSTUN
/bin/sh
{
# Rebuild fonts.dir when uninstalling package. (exclude the local, CID dirs)
if [ "$1" = "0" -a -d /usr/share/X11/fonts/misc ]; then
mkfontdir /usr/share/X11/fonts/misc
# Only run fc-cache in the Type1 dir, gzipped pcf's take forever
fc-cache /usr/share/X11/fonts/misc
fi
}
# &> /dev/null || :