Source code as a programming font

1 minute read

Adobe released their Source Code Pro font to the public back in 2012. This font is very kind to the eyes of a programmer and might be something you would like to try.

First up is the GitHub repository where you can find all sorts of information and installation instructions for different platforms. I will be focussing on Mac OS X as that is what I use on a daily basis.

The actual font files are distributed via sourceforge.net. At the time of this version 1.017 is the latest you can download. After you extract the archive you will see several different directories and files.

SourceCodePro-1.017-Archive

The TTF directory is our target. It contains all the various True Type Font files that we will need. Next step is to open up the Font Book application. This is the place on Mac OS X that you can see all the installed fonts and even install new ones. Open up Spotlight and type in Font Book to quickly find the application. You can also navigate to the Applications folder via Finder.

It should look like the below image when you start it.

FontBookOpen

Now, select all the TTF files and drop them on the Font Book application. You should be greeted by a pop-up screen that asks you if you wish to install the font.

FontBookInstall

Click on Install Font and you should be all set. You can check your work by looking up the font in the Font Book application as is shown below.

FontBookInstalled

So, thats all set up. Now for the most important step, activating it in Emacs. The code for this is simple, just add the following line to your init.el file and you are all set:

(set-default-font "Source Code Pro")