Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Adobe released a new, open source font family called "Source Code Pro" (download here, Slashdot article here). How do I install it?

share|improve this question

4 Answers 4

up vote 66 down vote accepted
  1. Download the archive from the Source Code Pro homepage. You can do it also using wget: Open a terminal (ctrl-alt-t or press the win key and type "terminal") and type

    wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip
    
  2. Unzip the archive (you can use Nautilus for that, or use the following command).

    unzip 1.017R.zip
    
  3. Create a directory in your home directory called ".fonts" (either go to home in Nautilus and create a new folder, or type the following from the terminal)

    mkdir -p ~/.fonts
    

    If you already have that directory, don't worry.

  4. Move the Open Type fonts (*.otf) to the newly created .fonts directory. In command line, that would be

    cp source-code-pro-1.017R/OTF/*.otf ~/.fonts/
    
  5. If you haven't done it yet, open a terminal, and type

    fc-cache -f -v
    

Your font is now ready to use and the applications should be able to see it.

All in one script for those who simply want to copy/paste the answer

#!/bin/bash
mkdir /tmp/adodefont
cd /tmp/adodefont
wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip
unzip 1.017R.zip
mkdir -p ~/.fonts
cp source-code-pro-1.017R/OTF/*.otf ~/.fonts
fc-cache -f -v

If you want to install system wide instead of per user, copy the files to /usr/local/share/fonts/ instead of ~/.fonts/.

share|improve this answer
    
This doesn't let me use this font on Terminal. What should I do to apply this font on the Terminal? –  user1261084 Sep 5 '14 at 19:07
3  
The links are dead, seems Source code pro was moved to github. github.com/adobe-fonts/source-code-pro –  briankip Jan 21 at 19:14

Thanks for the answer, just a modified script to get the latest file

#!/bin/bash
FONT_NAME="SourceCodePro"
URL="http://sourceforge.net/projects/sourcecodepro.adobe/files/latest/download"

mkdir /tmp/adodefont
cd /tmp/adodefont
wget ${URL} -O ${FONT_NAME}.zip
unzip -o -j ${FONT_NAME}.zip
mkdir -p ~/.fonts
cp *.otf ~/.fonts
fc-cache -f -v
share|improve this answer
2  
It seems that the project has moved to github at github.com/adobe-fonts/source-code-pro –  Rudiger Wolf Sep 18 '14 at 8:47

In order to install Source Code Pro, you can:

  1. Go to Google Fonts
  2. Type source code in the search box (the only match should be Source Code Pro)
  3. Click "Add to collection"
  4. Click on the text sample (this should present all the font styles)
  5. Tick all the check boxes
  6. Click the download icon (a down arrow on the top right) and download as Zip file

Now you just need to decompress the Zip file into your ~/.fonts folder:

mkdir -p ~/.fonts/Source_Code_Pro
unzip Source_Code_Pro.zip  -d ~/.fonts/Source_Code_Pro

You may need to run

fc-cache -f

to make the fonts available (no need to log out).

share|improve this answer

My answer is similar to the others just updating the URL'S as it seems those are removed. Source code pro's new home seems to be on github. Source code pro on github.

#!/bin/bash
mkdir /tmp/adodefont
cd /tmp/adodefont
wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip
unzip 1.017R.zip 
mkdir -p ~/.fonts
cp source-code-pro-1.017R/OTF/*.otf ~/.fonts/
fc-cache -f -v
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.