Install Source Code Pro font on Ubuntu

Posted on: Sunday, Apr 08, 2018

Put this Bash script in your home folder and run it to install Source Code Pro. Make it executable with:

chmod +x install-source-code-pro

From your home folder, launch it with:

./install-source-code-pro.sh

This file removes all installation files from the ~/Downloads folder when it's done.

#!/usr/bin/env bash

cd Downloads

wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip

if [ ! -d "~/.fonts" ] ; then
    mkdir ~/.fonts
fi

unzip 1.050R-it.zip 

cp source-code-pro-*-it/OTF/*.otf ~/.fonts/
rm -rf source-code-pro* 
rm 1.050R-it.zip 

cd ~/

fc-cache -f -v

install-source-code-pro.sh




Add your comment
You email is never shared with anyone else.

© Copyright 2017 by Roger Pence. All rights reserved.