Skip to content

Instantly share code, notes, and snippets.

@gotakk
Created April 3, 2015 15:01
Show Gist options
  • Save gotakk/acfbf49dd87e9a864067 to your computer and use it in GitHub Desktop.
Save gotakk/acfbf49dd87e9a864067 to your computer and use it in GitHub Desktop.
Bash script to install source code pro font (edited by Adobe) in Ubuntu
#!/bin/bash
FONT_NAME="SourceCodePro"
URL="https://github.com/adobe-fonts/source-code-pro/archive/1.017R.tar.gz"
mkdir /tmp/$FONT_NAME
cd /tmp/$FONT_NAME
wget $URL -O "`echo $FONT_NAME`.tar.gz"
tar --extract --gzip --file ${FONT_NAME}.tar.gz
sudo mkdir /usr/share/fonts/truetype/$FONT_NAME
sudo cp -rf /tmp/$FONT_NAME/. /usr/share/fonts/truetype/$FONT_NAME/.
fc-cache -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment