1
0
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:
wsdjeg 2018-01-27 20:42:40 +08:00
parent 907ab9dba0
commit 92577b1980

View File

@ -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!"
} }
# }}} # }}}