1 # arg 1: the new package version
3 echo -n "creating fonts.dir... "
4 mkfontscale /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
5 mkfontdir /usr/share/emacs/fonts/bdf /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1 2> /dev/null
7 echo -n "updating font cache... "
8 /usr/bin/fc-cache /usr/share/emacs/fonts
10 echo "Fonts installed to /usr/share/emacs/fonts."
11 echo "You may want to edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."
14 # arg 1: the new package version
15 # arg 2: the old package version
20 # arg 1: the old package version
22 echo -ne "\nupdating font cache... "
23 mkfontscale /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
24 mkfontdir /usr/share/emacs/fonts /usr/share/emacs/fonts/bdf /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
25 /usr/bin/fc-cache /usr/share/emacs/fonts
27 echo "You may want to delete /usr/share/emacs/fonts and edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."