mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Fix font cache
This commit is contained in:
parent
907ab9dba0
commit
92577b1980
@ -368,18 +368,18 @@ install_fonts () {
|
|||||||
download_font "mtextra.ttf"
|
download_font "mtextra.ttf"
|
||||||
download_font "symbol.ttf"
|
download_font "symbol.ttf"
|
||||||
download_font "wingding.ttf"
|
download_font "wingding.ttf"
|
||||||
echo -n "Updating font cache... "
|
info "Updating font cache, please wait ..."
|
||||||
if [ $System == "Darwin" ];then
|
if [ $System == "Darwin" ];then
|
||||||
if [ ! -e "$HOME/Library/Fonts" ];then
|
if [ ! -e "$HOME/Library/Fonts" ];then
|
||||||
mkdir "$HOME/Library/Fonts"
|
mkdir "$HOME/Library/Fonts"
|
||||||
fi
|
fi
|
||||||
cp $HOME/.local/share/fonts/* $HOME/Library/Fonts/
|
cp $HOME/.local/share/fonts/* $HOME/Library/Fonts/
|
||||||
else
|
else
|
||||||
fc-cache -fv
|
fc-cache -fv > /dev/null
|
||||||
mkfontdir "$HOME/.local/share/fonts"
|
mkfontdir "$HOME/.local/share/fonts" > /dev/null
|
||||||
mkfontscale "$HOME/.local/share/fonts"
|
mkfontscale "$HOME/.local/share/fonts" > /dev/null
|
||||||
fi
|
fi
|
||||||
echo "Done!"
|
success "font cache done!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user