User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Must-have

A few stipulations for an unambiguous font:
- It must be easily legible.
- It must have a slashed zero (so as to distinguish it from capital O). - It must sufficiently differentiate between the characters 1, l, |, and I.

Why? Because when people are writing code, or checking data and documents, they need to be able to distinguish easily between these characters.

Nice-to-have

Aesthetically pleasing

share|improve this question

closed as primarily opinion-based by JonW Oct 20 '13 at 19:17

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Perhaps this belongs on programmers.SE :-) Anyway, I too use Consolas. – Danny Varod Oct 20 '13 at 8:33
1  
How does this relate to User Experience? Are you designing an application that has programmers as end users? Do you expect the end users to be incapable of selecting a font that suits them, then? – Jukka K. Korpela Oct 20 '13 at 12:06
2  
Duplicate of: stackoverflow.com/questions/4689/… – Danny Varod Oct 20 '13 at 17:35
1  
Putting this on hold. It was probably closed off on StackOverflow because it's not a question with a correct answer. Also, as @DannyVarod points out it already has a closed duplicate on StackOverflow, and with 100+ answers it demonstrates why such questions don't really work in this format, but should also give you plenty of useful suggestions. – JonW Oct 20 '13 at 19:20
    
"If you throw a list of fonts at me" = likely why it's been closed everywhere you post it. – DA01 Oct 20 '13 at 23:51
up vote 9 down vote accepted

Monospaced fonts can provide what you're looking for, a good example of which is Consolas.

Consolas is the standard font on Visual Studio 2010 and 2012, and Eclipse Indigo (the standard font on previous versions of both these tools being Courier New 10).

Consolas Preview

Consolas has been described (here) as "...a sans-serif font with the same rounded appeal [as Lucida Console], but nevertheless retains the traditional "code" feel, with monospaced characters and a "boxy" look."

It holds all the characteristics of a programming font; namely being sans-serif, fixed-width, slashed zero, and sufficient differentiation between the characters 1, l, |, and I.

Consolas -- differentiation between similar characters

Consolas is clear, concise, and (for the same font-size) takes up less room than Courier New.

Its only short-coming, however, is that it was built specifically for ClearType, and is a commercial font. It ships with all major new Microsoft releases though, and is therefore most suited for programming on newer Windows machines (you can get it for Mac if you install Microsoft Office). As an alternative to Consolas on Mac or Linux, you could try Monaco, Ubuntu Mono, DejaVu Sans Mono or Anonymous Pro.

If you'd like more options, check these articles:
Hivelogic - Top 10 Programming Fonts
Slant - What are the best programming fonts

UPDATE:
Here's a graphical comparison of Consolas against the other fonts mentioned in this answer:

Monospaced Typefaces comparison

For a full list of the comparison, see Samples of monospaced typefaces and some more here - 42 of the Best Monospaced Programming Fonts, courtesy of comment from @Basil Bourque.

share|improve this answer
1  
I do use DejaVu Sans Mono on Windows. Why not? – Konrad Morawski Oct 20 '13 at 13:28
    
There is also a CSS enhancement that tweaks fonts that don't distinguish zero from O very effectively: thenewcode.com/656/… – Yvonne Aburrow Dec 7 '15 at 11:15
    
@YvonneAburrow: Interesting, thanks! That would be Plan B if one is keen on using a font that doesn't do it natively. Browser-specific issues might arise though. – SNag Dec 7 '15 at 12:52

I like your opening gambit! :)

For me I like courier new in Sublime; but that doesn't answer your question. It also doesn't help that the default Windows font viewer uses the string 1-9 to display.

SNag's answer has everything down to a tee - especially when it comes to i, l and 1.

For a list of zero slash fonts look here

Knock yourself out.

share|improve this answer
    
Thanks for your contribution. – Thirteen Oct 21 '13 at 16:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.