1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
update_font_cache() { echo "Updating font cache..." cd /usr/share/fonts/misc mkfontdir mkfontscale xset -q | grep /usr/share/fonts/misc || xset +fp /usr/share/fonts/misc xset fp rehash fc-cache -fv } post_install() { update_font_cache } post_remove() { update_font_cache }