Aaron Iba's Blog

My small contributions to the internet

Dina Bitmap Font for OSX

with one comment

I used FontForge to create a version of the Dina programming font optimized for OSX.

[ Download DinaMedium.dfont.zip ]

Usage note: you must set the font size to 16 for this font to display correctly.  See below.

Other versions of the Dina font I was able to find on the internet all got screwed up on OSX so I made this one.  It seems to work great in Emacs.app, MacVim, and XCode.

To use this file, unzip it and put DinaMedium.dfont into ~/Library/Fonts/ and follow the instructions for your editor:

Emacs.app configuration: I am using emacs24 compiled with these instructions.   I added these lines to ~/.emacs:

(setq mac-allow-anti-aliasing nil)
(set-frame-font "-apple-Dina-medium-normal-normal--16--*-*-m-0-iso10646-1")

MacVim configuration:  Using the latest macvim, I added this line to ~/.vimrc:

set noantialias
set guifont=Dina-medium:h16

Any other app configuration:  Select Dina-medium from the standard OSX font picker and set size to 16.

Dina is my favorite font for programming.  All letters and symbols are clearly disambiguated, like zero and a capital ‘O’, or braces, brackets, and parenthesis (essential for clojure programming).  The size is just right for my eyes and a 30″ display.  And I love the overall aesthetic.  Hope you enjoy!

Written by Aaron Iba

August 29, 2011 at 7:16 pm

Posted in Uncategorized

One Response

Subscribe to comments with RSS.

  1. Thanks for making this available! From the screenshot it looks like it’s a fair bit less compact vertically than the good old xterm/x11 font. On a 30-inch screen that gives 120 lines of code per window and, at 80 columns, you can fit 5 windows side-by-side. 600 lines of code all in view!

    That reminds me a fancy emacs feature that sounds really nice: follow-mode.
    http://www.gnu.org/software/libtool/manual/emacs/Follow-Mode.html

    Daniel Reeves

    August 30, 2011 at 7:44 am


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.