summaryrefslogtreecommitdiffstats
path: root/abs/core/fontconfig/fontconfig.install
blob: 1a80d044008d317cd06fc8b14f2ef196b06134e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
post_install() {
  cat << _EOF
  
  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
  Read /etc/fonts/conf.d/README for more information.

  Configuration via /etc/fonts/local.conf is still possible,
  but is no longer recommended for options available in conf.avail.

  Main systemwide configuration should be done by symlinks
  (especially for autohinting, sub-pixel and lcdfilter):
  
  cd /etc/fonts/conf.d
  ln -s ../conf.avail/XX-foo.conf
  
  Check also https://wiki.archlinux.org/index.php/Font_Configuration
  and https://wiki.archlinux.org/index.php/Fonts.

_EOF

  post_upgrade $1
}

post_upgrade() {
  echo -n "Updating font cache..."
  # a full forced directory scan is required here
  /usr/bin/fc-cache -rs
  echo " done."
}

post_remove() {
  cat << _EOF

  Check for dead symlinks and leftover files 
  in /etc/fonts/conf.d/
  
_EOF
}