2 ms·
> Sans serif fonts don't distinguish between I and l and I didn't find a proportional serif font that does look good enough for code. You might try Trebuchet M
by Stratoscope 10y ago
> Sans serif fonts don't distinguish between I and l and I didn't find a proportional serif font that does look good enough for code.
You might try Trebuchet MS. I've been using it for a few years now and find it to be an almost ideal programming font. It does have easily distinguished Il| and 0Oo characters, and it looks really good in the somewhat large font sizes I prefer on a high-DPI display. The only thing I don't like about Trebuchet MS is it has a really weak tilde (~). Sometime I will have to play with a font editor and see if I can swap in a better tilde.
Regarding column alignment, the solution is "don't do that." :-) I banished column alignment from my code a long time ago and haven't regretted it at all.
Of course, all that said, when viewing other people's code it can be useful to be able to view it in a monospaced font.