core/fontconfig/fontconfig.install
Samir 348d542db8 libpng group: update/rebuild platform
will commit them separately next time... it's just too much work to do separate commits right now
2013-07-27 16:51:03 +00:00

50 lines
1.3 KiB
Plaintext

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
echo -n "updating font cache... "
/usr/bin/fc-cache -f
echo "done."
}
post_upgrade() {
echo -n "updating font cache... "
/usr/bin/fc-cache -f
echo "done."
}
post_remove() {
if [[ "$1" == "2.8.0-3" ]]; then
rm /etc/fonts/conf.d/20-fix-globaladvance.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
rm /etc/fonts/conf.d/57-dejavu-sans.conf
rm /etc/fonts/conf.d/57-dejavu-sans-mono.conf
rm /etc/fonts/conf.d/57-dejavu-serif.conf
fi
cat << _EOF
Check for dead symlinks and leftover files
in /etc/fonts/conf.d/
_EOF
}