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

3 Answers 3

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

    wget http://downloads.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-1.017.zip
    
  2. Unzip the archive (you can use Nautilus for that, or use the following command).

    unzip SourceCodePro_FontsOnly-1.017.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 SourceCodePro_FontsOnly-1.017/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 http://downloads.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-1.017.zip
unzip SourceCodePro_FontsOnly-1.017.zip
mkdir -p ~/.fonts
cp SourceCodePro_FontsOnly-1.017/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 at 19:07

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
    
It seems that the project has moved to github at github.com/adobe-fonts/source-code-pro –  Rudiger Wolf Sep 18 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

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.