summarylogtreecommitdiffstats
path: root/phallus-fonts.install
blob: d283a0b916edb62af827f53b04561aa5163f6349 (plain)
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
}