post_install() {
  echo "Updating font cache... " 
  fc-cache -fs >/dev/null 2>&1
  mkfontscale /usr/share/fonts/misc
  mkfontdir /usr/share/fonts/misc
  xset fp rehash >/dev/null 2>&1
  echo "Make sure that the line"
  echo "FontPath     \"/usr/share/fonts/misc\""
  echo "is present in xorg.conf under the \"Files\" section"
}

post_upgrade() {
  post_install
}

post_remove() {
  fc-cache -fs >/dev/null 2>&1
  mkfontscale /usr/share/fonts/misc
  mkfontdir /usr/share/fonts/misc
  xset fp rehash >/dev/null 2>&1
}