1 configs=('10-antialias.conf'
3 '10-hinting-slight.conf'
4 '11-lcd-filter-lcddefault.conf'
5 '20-fix-globaladvance.conf'
6 '20-unhint-small-vera.conf'
7 '25-ttf-arphic-uming-render.conf'
10 '30-metric-aliases.conf'
12 '35-ttf-arphic-uming-aliases.conf'
14 '41-ttf-arphic-uming.conf'
19 '53-monospace-lcd-filter.conf'
21 '64-ttf-arphic-uming.conf'
22 '64-ttf-thai-tlwg.conf'
23 '65-fonts-persian.conf'
28 '90-ttf-arphic-uming-embolden.conf'
29 '90-ttf-thai-tlwg-synthetic.conf')
32 echo -n "updating font cache... "
34 pushd /etc/fonts/conf.d > /dev/null
35 for config in "${configs[@]}"; do
36 ln -sf ../conf.avail/${config} .
44 rm -f /etc/fonts/conf.d/10-bitmaps.conf
47 ===> Important Fontconfig configuration change <===
49 The way fontconfig is configured has been changed.
50 Configuration is done via /etc/fonts/conf.avail and conf.d.
51 Read /etc/fonts/conf.avail/README for more information.
53 Configuration via /etc/fonts/local.conf is still possible,
54 but is no longer recommended for options available in conf.avail.
58 if [ `vercmp 2.4.1-1 $2` -gt 0 ]; then
59 # Upgrade from old version, place all symlinks. pre-symlink package version
60 echo -n "Linking configuration files... "
61 pushd /etc/fonts/conf.d > /dev/null
62 for config in "${configs[@]}"; do
63 ln -sf ../conf.avail/${config} .
69 if [ `vercmp 2.6.0-6 $2` -gt 0 ]; then
70 # pre-2.6.0 versions have missing config
71 echo -n "Adding missing configuration files... "
72 pushd /etc/fonts/conf.d > /dev/null
73 ln -sf ../conf.avail/30-metric-aliases.conf .
74 ln -sf ../conf.avail/40-nonlatin.conf .
75 ln -sf ../conf.avail/45-latin.conf .
81 echo -n "Removing outdated configuration files... "
82 for config in /etc/fonts/conf.d/*; do
83 if [ ! -f ${config} ]; then
89 echo -n "updating font cache... "
95 # Link new config files not present on system yet
96 echo -n "Symlinking new configuration files... "
97 pushd /etc/fonts/conf.d > /dev/null
98 for config in "${configs[@]}"; do
99 if [ ! -f ../conf.avail/${config} ]; then
100 ln -sf ../conf.avail/${config} .
108 pushd /etc/fonts/conf.d > /dev/null
109 for config in "${configs[@]}"; do