1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
_updfont() { echo -n "Updating $1 fonts... " fc-cache pushd usr/share/fonts/$2 >/dev/null mkfontscale mkfontdir popd >/dev/null echo "done" } post_install() { _updfont "bitmap" misc _updfont "TrueType" TTF } post_upgrade() { post_install } post_remove() { fc-cache }