summarylogtreecommitdiffstats
path: root/intlfonts.install
blob: 8acfbaab6a3105c6383aac761c37bd5d4fc2b414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
update_font_cache() {
  echo -n "Updating font cache... "
  fc-cache -s /usr/share/emacs/fonts
  mkfontscale /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
  mkfontdir /usr/share/emacs/fonts/bdf /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1 2> /dev/null
  echo "done."
}

post_install() {
  update_font_cache
  echo "Fonts installed to /usr/share/emacs/fonts."
  echo "You may want to edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."
}

post_upgrade() {
  post_install $1
}

post_remove() {
  update_font_cache
  echo "You may want to delete /usr/share/emacs/fonts and edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."
}