14
Nov
2007

Droid Sans Mono great coding font

Google's Android project, an open platform for mobile devices, has been hitting the news a lot in the last couple of days with it's open APIs, Java-based development platform and optimized virtual machine which includes the lovely set of typefaces from Ascender Fonts known as the Droid family.

Check out previous coverage of the well-known and lesser-known coding fonts.

There are a number of Droid fonts including Droid Sans and Droid Serif but of particular interest for developers is the Droid Sans Mono font that looks great in Visual Studio not only at my favourite 10 point... but from 7 point upwards with either ClearType or standard font smoothing although some might find the fact it smooths at all sizes a little soft (or Mac-like).

Here it is at 9 point with Rob Conery's Vibrant Ink 2 theme:
Screen shot of Droid Sans Mono at 9 point with Vibrant Ink 2 theme in Visual Studio

Here it is at 11 point with my Humane theme:
Screen shot of Droid Sans Mono at 11 point with Humae theme in Visual Studio

And hereis 12 point in Xcode on the Mac:
Screen shot of Droid Sans Mono at 12 point in Xcode on the Mac

The only issues are:

  • the lack of a bold weight or italic variant which limits the syntax highlighting options
  • the 0 is currently not slashed (there could be some other indistinguishable character pairs)

Being that the Droid family is Apache licensed no doubt somebody will fill that gap (okay, okay, I'll give it a shot when I get some time;-)

Download Droid Sans Mono (TrueType TTF) (47 KB)

Try my free scalable coding font Envy Code R (shown below) with Visual Studio italic support, has a bold variant and distinguishable pairs 0O etc:

Envy Code R font at 10 pt with italics in Visual Studio using Humane theme.

[)amien

Share with others
  • Digg
  • description
  • StumbleUpon
  • description
  • Reddit
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • Technorati
  • E-mail this story to a friend!

46 Responses to “Droid Sans Mono great coding font”


  1. Gravatar 1 Stu Nov 14th, 2007 at 19:11

    Wow, that is actually really nice (and works nicely in jEdit!) apart from lacking the slashed zero. I'm not using bold/italics in my syntax highlighting, so no loss to me.

    Thanks for putting me onto this mate!

  2. Gravatar 2 Vityok Nov 15th, 2007 at 10:11

    In my honest opinion terminus font is far more better. It features slashed zero and is very readable on the screen.

  3. Gravatar 3 Damien Guard Nov 15th, 2007 at 10:11

    Terminus is a bitmapped font and therefore not for the same audience. (Unless they have actually made a scalable TrueType version available but a quick Google only showed a rather ugly tech preview)

    [)amien

  4. Gravatar 4 foo Nov 15th, 2007 at 12:11

    Doesn't look bad, but the lack of a slashed zero is a deal breaker - any chance you're gonna fix that?

  5. Gravatar 5 SpongeBob TesseractPants Nov 15th, 2007 at 13:11

    "Bitstream Vera Sans Mono", and "DejaVu Sans Mono", a derived font with more unicode glyphs, have 0s that don't look like Os, and are bundled with most linux distros.

  6. Gravatar 6 Thomas Nov 15th, 2007 at 13:11

    Bitstream Vera Sans Mono for the win.

  7. Gravatar 7 omg Nov 15th, 2007 at 14:11

    Why do you have "Sans" in the name when it's not a sans serif font?

    Just stating the obvious...

  8. Gravatar 8 hauk Nov 15th, 2007 at 15:11

    Nha, does not beat Andale Mono 11. Andale Mono gives me 1/4 more text on the screen than Droid and is sharper.

  9. Gravatar 9 Damien Guard Nov 15th, 2007 at 16:11

    @Spongebob, Hauk & Thomas: Those fonts were covered a year ago.

    @Omg: It quite obviously is a sans (only i and l have serifs which is quite normal for a monospaced font to avoid distracting spacing around them) which is why Ascender or Google named it as such - I did not name or create this font and am just presenting it.

    [)amien

  10. Gravatar 10 Michael Nov 15th, 2007 at 16:11

    This one IS nice, though Dina is still the best programming font I've ever used.
    http://www.donationcoder.com/Software/Jibz/Dina/index.html

  11. Gravatar 11 typo in code sample Nov 15th, 2007 at 17:11

    Your code sample has a typo. The url, presented as http://packmyboxwith/jugs.html?q=fixe-dozen&t=liquor, should instead be http://packmyboxwith/jugs.html?q=five-dozen&t=liquor. Note the correction of the quantity.

  12. Gravatar 12 Damien Guard Nov 15th, 2007 at 17:11

    @Michael: Yeah, I was using bitmapped and pixel fonts for years too (Envy Code A/B) but eventually decided I wanted something scalable with smooth corners hence why I keep my eyes open for new alternatives while I still work on my own (Envy Code R).

    @typo: Well spotted :D

    [)amien

  13. Gravatar 13 Chango Nov 15th, 2007 at 19:11

    Looks great in emacs but since it doesn't have slashed zeros I am going to keep using Bitstream Vera Sans Mono!

  14. Gravatar 14 jon Nov 15th, 2007 at 20:11

    Ah! Submarine, repeated every second! How can you stand it!

  15. Gravatar 15 Josh Nov 15th, 2007 at 22:11

    Great font, I'm going to give it a whirl in gvim today and see how it goes... thanks for sharing!

  16. Gravatar 16 Matt Nov 16th, 2007 at 12:11

    Looks very similar to Inconsolata, which does have the slashed zero.

  17. Gravatar 17 Damien Guard Nov 16th, 2007 at 12:11

    That is partly because both fonts elect to use full smoothing at all sizes rather than snap-to-grid hinting.

    Inconsolata didn't start off with a slashed zero, that was added later. It's possible Ascender or Google will revise it... or somebody else will.

    [)amien

  18. Gravatar 18 Ceesaxp Nov 16th, 2007 at 12:11

    I am impressed that it is not ASCII-only! I love Vera Sans Mono, but it has no support for Cyrillics :(

  19. Gravatar 19 Prem Nov 16th, 2007 at 13:11

    Hi Damien,

    Could you contrast this font with the current top programming fonts, showing where it
    is superior to the others and also highlighting where it has drawbacks when compared
    to them.

    TIA!

  20. Gravatar 20 Damien Guard Nov 16th, 2007 at 13:11

    Part of the problem is that different systems render the same font in different ways (Windows, Mac OS X, Java, Flash, Linux/FreeType) each of which offers a number of smoothing techniques and variances. Add in the mix of personal preferences for colour schemes and font sizes and that's a mammoth task.

    [)amien

  21. Gravatar 21 Apreche Nov 16th, 2007 at 14:11

    This looks exactly like BitStream Vera Sans mono to me. I might need a side by side comparison to see a difference, if there is any. Personally, I use Proggy Clean Slashed Zero in vim.

  22. Gravatar 22 Cem Gencer Nov 16th, 2007 at 15:11

    Why do coders spend so much valuable time to search for a font, where they could create tons of code in the same time? Looks funny to me. Coding isn't dependent to the font. It wasn't back on Commodore 64 where only the system font was enough to code thousands of games. lol... :)

  23. Gravatar 23 Bene Nov 16th, 2007 at 15:11

    The coding font to rule them all is Pragmata

    ..it's not free but well worth the small dough.

  24. Gravatar 24 eddyp Nov 16th, 2007 at 18:11

    > I am impressed that it is not ASCII-only! I love Vera Sans Mono, but it has no support for Cyrillics :(

    I sugest you look at Dejavu Sans Mono; it has support for cyrillic and many diacritc marks.

  25. Gravatar 25 FreeBee Nov 16th, 2007 at 18:11

    I'm with Cem Gencer here.

    Why are so many coders always yammering about which font is best, where they SHOULD be spending their time coding and/or debugging? The choice of font is a PERSONAL thing; you choose what you find pleasing or helpful or whatever to look at. I'd rather see the end result of a good programming job than all this yammering about fonts which isn't going to fix any bugs!

  26. Gravatar 26 Damien Guard Nov 16th, 2007 at 19:11

    If you take pride in your code surely you want to spend a few minutes choosing a comfortable font that makes working with it even more pleasurable.

    [)amien

  27. Gravatar 27 mux Nov 16th, 2007 at 22:11

    anyone else here reminded of the scene in American Psycho where the executives are sitting at the table comparing almost completely identical business cards?

    ...I know, I know, I'm a font zealot too, just playing devil's advocate. :)

  28. Gravatar 28 Nels Nov 16th, 2007 at 23:11

    Lack of bold style. No slash through zero. I'll also stick with Bitstream Vera Sans Mono (http://www.gnome.org/fonts/).

  29. Gravatar 29 Justin Nov 17th, 2007 at 01:11

    Damien,

    I just want to give my thanks for pointing us to a beautiful font. This font runs beautifully at 8pt.

  30. Gravatar 30 Rich Nov 17th, 2007 at 16:11

    Pissing on someone for pointing out a useful font to others makes no sense to me. Staring at code all day long can be a vastly more pleasant experience if the font is easier on the eye. Coding with a good font saves time in the long run.

    Total time I've spent looking for a good font to code with? Zero minutes--thanks to this post.

    "The choice of font is a PERSONAL thing; you choose what you find pleasing or helpful or whatever to look at." Exactly. And I didn't know that this font existed until Damien was kind enough to point it out. I know have a pleasing and helpful font to use.

    For someone all fired up about not wasting time, you spent time posting somthing negative that did nothing to contribute to the thread.

  31. Gravatar 31 Jane Nov 17th, 2007 at 20:11

    Rich

    If I have to work with code all the time, I don't want it to be in Courier. I want a clean antialiased gorgeous font I can stand looking at for hours on end - e.g. Consolas, Bitstream Vera Sans Mono, Inconsolata.

    I have the same discussion with friends and professors regarding Times New Roman. Yes, everyone uses it. That doesn't mean I want to look at what has to be one of the ugliest serif fonts in use today. It's a pain to read, it's a pain to edit my work when the font is giving me a headache, it's a pain when I'm reading it on a Mac where all these fonts look amazing.

    The choice is most definitely personal. I prefer to look at what I want to look at if I have a choice, rather than to just deal with a nasty default.

    Lastly, a good font can actually help with coding. I don't know about you, but I get to deal with partners who have problems typing. Syntax errors galore, and sometimes with the wrong font I can't spot why. On the other hand, a good font would make it fairly easy to spot a place where someone accidentally confused the letter O with the number 0.

  32. Gravatar 32 mozkill Nov 20th, 2007 at 17:11

    I tried using this font in my windows theme and it created all kinds of havoc with printing.

  33. Gravatar 33 gregf Nov 25th, 2007 at 04:11

    Pretty nice, using it now. Would really rock if the 0's had a dot or a slash. Nice work, thanks for sharing.

  34. Gravatar 34 Anko Nov 29th, 2007 at 03:11

    Thanks for the tip. It's a really nice font except I find the semi-colon hard to read. It looks like I may have to revert to my old font, Bitstream Vera Sans Mono.

    p.s. your comment box thinks that isn't a valid character in an email address!

  35. Gravatar 35 Kezzer Dec 8th, 2007 at 14:12

    Heh, I actually just stumbledupon your post Damien and since I did, I then went on to download the font. The bold is richer than regular types, which isn't a bad thing as it makes certain key words more distinct. I think I'll stick with it for a while, see how it feels :)

  1. 1 Droid font family courtesy of Google & Ascender » DamienG Pingback on Nov 14th, 2007 at 14:11
  2. 2 Gigodo.com » Blog Archive » Droid Sans Mono, a sweet monospace font Pingback on Nov 16th, 2007 at 11:11
  3. 3 Food, Fonts and Facebook « Rohan’s Weblog Pingback on Nov 17th, 2007 at 07:11
  4. 4 My View » Writing Fonts Pingback on Nov 17th, 2007 at 17:11
  5. 5 The Coffee Break Blog » Droid Sans Mono, a sweet monospace font Pingback on Nov 20th, 2007 at 14:11
  6. 6 Vixiom Axioms » Droid Sans Mono funk dat sh!t, Bitstream Vera Sans Mono! Pingback on Nov 22nd, 2007 at 03:11
  7. 7 HTML Editor Reviews » del.icio.us bookmarks for November 16th through November 28th Pingback on Nov 29th, 2007 at 00:11
  8. 8 Liberation and Droid, Two Free Font Families | peterc.org Pingback on Jan 14th, 2008 at 03:01
  9. 9 Phuket Information Technology Blog » Blog Archive » Android - Beautiful Monospace Font Pingback on Jan 25th, 2008 at 13:01
  10. 10 Command-Tab Trackback on Feb 19th, 2008 at 21:02
  11. 11 | Here’s a Quick Way to make code look nicer in Firefoxthe j-blog Pingback on Aug 25th, 2008 at 11:08

Leave a reply




Topics