Skip to content

Instantly share code, notes, and snippets.

Forked from dyoungwd/
Last active May 27, 2019 04:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install Google Fonts on fedora
# Original : Michalis Georgiou
# Modified : D4zzy for Fedora
# Modified : Ayman Bagabas for /usr/local
# install wget
echo "Installing wget..."
sudo dnf install wget
echo "Connecting to Github server..."
wget $_wgeturl -O $_gf.tar.gz
echo "Extracting the downloaded archive..."
tar -xf $_gf.tar.gz
echo "Creating the /usr/local/share/fonts/truetype/$_gf folder"
sudo mkdir -p /usr/local/share/fonts/truetype/$_gf
echo "Installing all .ttf fonts in /usr/local/share/fonts/truetype/$_gf"
find $PWD/fonts-master/ -name "*.ttf" -exec sudo install -m644 {} /usr/local/share/fonts/truetype/google-fonts/ \; || return 1
echo "Updating the font cache"
fc-cache -f > /dev/null
# clean up, but only the .tar.gz, the user may need the folder
rm -f $_gf.tar.gz
echo "Job Done - enjoy your fonts..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment