Saturday, January 3, 2015

Powerline compatible Terminus Font for OSX

My preferred programming font (and what I set for my terminals whether it's on Linux or OSX) is Terminus.  While it's not on most Linux distribution by default, it's usually available through the distribution's package management system (yum, apt-get, etc.).

On OSX, it's a little more troublesome.  A search on Google will turn up three different versions in the first three results.  In the past, I've used the one here. However, if you use something like powerline or vim-airline it doesn't have all the symbols so for some things it will just use the characters like '>>' and '>'.

To have those nice symbols, you generally need a 'patched' version of the font that has those symbols (this just means they added the characters to the font collection).  You can find versions of many popular programming fonts here.

You'll notice that Terminus is part of the collection except that the format that is included isn't compatible with OSX.  Thus, I have always had to live with the characters above.  The latest version of Terminus TTF from here now includes the powerline symbols and so I was able to install it and now my status bar looks like all those other pretty ones out there!

2 comments:

  1. Hey LazyHacker,
    I'm a huge fan of Terminus font as well and been using it since I first discovered it about three or four years ago on all of my GNU+Linux and BSD boxes.
    As I recently moved to Mac (fuck off you Apple haters, keep revolving in the Devonian Era) first thing I did was bring it to OS X but alas! There's no Terminus font version here that works well with the | (pipe) symbol: tmux and Midnight Commander look awful :'(
    For the time being I'm switching to Menlo which is a good font too and keep using Terminus on my other *nix systems.

    ReplyDelete
  2. Did you try the font here: https://github.com/powerline/fonts?

    ReplyDelete