1 configs=('20-fix-globaladvance.conf'
2 '20-unhint-small-vera.conf'
3 '29-replace-bitmap-fonts.conf'
4 '30-metric-aliases.conf'
12 '65-fonts-persian.conf'
19 echo -n "updating font cache... "
21 pushd /etc/fonts/conf.d > /dev/null
22 for config in "${configs[@]}"; do
23 ln -sf ../conf.avail/${config} .
31 rm -f /etc/fonts/conf.d/10-bitmaps.conf
34 ===> Important Fontconfig configuration change <===
36 The way fontconfig is configured has been changed.
37 Configuration is done via /etc/fonts/conf.avail and conf.d.
38 Read /etc/fonts/conf.d/README for more information.
40 Configuration via /etc/fonts/local.conf is still possible,
41 but is no longer recommended for options available in conf.avail.
45 if [ `vercmp 2.4.1-1 $2` -gt 0 ]; then
46 # Upgrade from old version, place all symlinks. pre-symlink package version
47 echo -n "Linking configuration files... "
48 pushd /etc/fonts/conf.d > /dev/null
49 for config in "${configs[@]}"; do
50 ln -sf ../conf.avail/${config} .
56 if [ `vercmp 2.6.0-1 $2` -gt 0 ]; then
57 # pre-2.6.0 versions have missing config
58 echo -n "Adding missing configuration files... "
59 pushd /etc/fonts/conf.d > /dev/null
60 ln -sf ../conf.avail/30-metric-aliases.conf .
61 ln -sf ../conf.avail/40-nonlatin.conf .
62 ln -sf ../conf.avail/45-latin.conf .
68 echo -n "Removing outdated configuration files... "
69 for config in /etc/fonts/conf.d/*; do
70 if [ ! -f ${config} ]; then
76 echo -n "updating font cache... "
82 # Link new config files not present on system yet
83 echo -n "Symlinking new configuration files... "
84 pushd /etc/fonts/conf.d > /dev/null
85 for config in "${configs[@]}"; do
86 if [ ! -f ../conf.avail/${config} ]; then
87 ln -sf ../conf.avail/${config} .
95 pushd /etc/fonts/conf.d > /dev/null
96 for config in "${configs[@]}"; do