4 ms·
Fonts for hackers
- dfranke 19y agoI prefer Terminus or DejaVu Sans Mono.
- Zak 19y agoI like the look of Proggy, but it's bitmapped at 10px. My screen is 15.4"/1680x1050. I have pretty good vision, but looking at fonts that small all day will make my eyes bleed.
- aristus 19y agoprofonts are quite nice as well. http://www.tobias-jung.de/seekingprofont/ http://www.tobias-jung.de/seekingprofont/
- gms 19y agoAnother vote for monaco on Carbon Emacs (OS X). White text on black background, obviously :)
- jsnx 19y agoMonotype fonts are tough to get right. The Latin alphabet evolved "off the grid", as did all of its prominent variations -- for example black letter (sometimes called "gothic"), humanist (the fore-runner of our "roman type"), and chancery cursive (the fore-runner of our "italic"). The only precursor for monotype is the large, decorated capitals at the beginning of chapters and sections -- "illuminated letters" -- that were approximately square. Some consequence: the poor spacing of the letters 'i' and 'l', and the squashed, dark appearance of the 'm' and 'w' in monotype fonts. There is something of a hopeless in the task, though, since any good monotype font will have hundreds of characters in it: punctuation, numbers, European letters, mathematical marks... Making them all look right together, with the additional constraint of identical size, is a Herculean task.
- tokipin 19y agolong ago when i started programming i used OCR. it's a terrible font, designed to be easy for machines to read, "Optical Character Recognition." but at the time i didn't know that, and didn't care. i was young and wild a few months ago i tried setting Vim to use OCR, but for whatever reason it didn't wanna. luckily in my quest i found a free package of fonts: http://en.wikipedia.org/wiki/Core_fonts_for_the_Web#The_fonts http://en.wikipedia.org/wiki/Core_fonts_for_the_Web#The_font... these are professional fonts that you'd normally have to pay $20 a pop for, but for legal reasons they're free in their packaged form one of the fonts is Andale Mono, which Vim didn't reject. it felt odd at first compared to Courier, mainly because Courier is quite heavy. but Andale grew on me quick and it remains my font. since then there have been times i've thought my code actually looked aesthetically beautiful
- ralphc 19y agoI got an Andale Mono install for Windows about 10 years ago, and have transferred it to computer to computer ever since. Another vote for Andale Mono.
- Shorel 19y agoIMO, nothing beats Lucida Console 10pts.
- deleted 19y ago[deleted]
- vegashacker 19y agoI like anti-aliased Monaco 14 pt (I know, it's large, but I'm trying to save my eyes) on Terminal.app for the Mac.
- joshwa 19y agoYeah, Monaco 12 in Textmate is pretty darn comfortable. I wish I could turn on AA in Terminal.app...
- vegashacker 19y agoWhy can't you?
- joshwa 19y agoHowdoyalikethat? Turns out I can! Monaco 9 AA, line-height at 0.8x is quite nice for log file monitoring.
- plusbryan 19y agowhy might looking at a larger font somehow save your eyes? presumably, if you take appropriate breaks, it shouldn't matter how small your font is. right? cause if I'm wrong, I seriously need to rethink this small font fetish I have...
- kingnothing 19y agoI'm not sure about you, but my eyes noticeably tire more quickly when reading small fonts versus larger fonts for prolonged periods of time.
- nmeyer 19y agoi use 10pt monaco on windows with ClearType turned on
- asmosoinio 19y agoI just ditched monotype fonts a few weeks ago or so, and am not thinking about going back. Looks so much nicer, and so far I have never had any text I could not to line up neatly enough. I am currently using "Vrinda" size 10 on my Windows Vista laptop with ClearType -- will probably use a bigger font once I buy a proper monitor. Some nice discussion and inllustrations around this theme at Coding Horror: http://www.codinghorror.com/blog/archives/000969.html http://www.codinghorror.com/blog/archives/000969.html
- tlrobinson 19y agoYou use variable width fonts for programming?! I just hope I never have work on the same code with you. There's just so many cases where having monospaced font is useful and easier to read when dealing with code.
- asmosoinio 19y agoYou bet I do! And I have not changed anything in my code due to this, so I think you could work with me just fine. There's tabs for indentation, and there's... well, code. What else do you need? Could you give some examples of these cases? I really haven't come up with any in the past few weeks, and the readability is so much better with variable width.
- tlrobinson 19y agoIn programming languages every character is just as important as every other character (on average), so each character should get the same amount of space. For example, looking at this: http://www.codinghorror.com/blog/images/programming-fonts-2-comicsans.png http://www.codinghorror.com/blog/images/programming-fonts-2-... ...the "!" in the conditional is squished into about 3 pixels, but it has just as much importance as any other character, if not more. Glancing at this code you might not even notice it. In normal text it is also important, but would appear at the end of a sentence, which would be hard to miss...but wedged in there between the "(" and "O" it gets lost. Another example is trying to line up things. This is sort of a style preference, but sometimes I like doing things like this: float percent = 0.4f; int width = 640, height = 480; char flag = 'A'; Now, when I typed that the text field was using a monospaced font and everything was lined up perfectly. Chances are, you're viewing it with a variable width font... is it lined up? Not really. (edit: ok in this case multiple whitespace characters are converted to a single point but you get the idea) What about this: float percent = 0.4f; int width = 640, height = 480; char flag = 'A'; Much nicer, eh? Variable width fonts are optimized for readability of free flowing text like books, articles, etc. Code is highly structured, and lining things up and that sort of thing can help the readability. Can you give me cases where variable width font in code is better?
- davidw 19y agoI've been using this for a number of years and still like it: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 BTW, after thinking about this, I thought it would be fun to share actual screen shots: http://news.ycombinator.com/item?id=74605 http://news.ycombinator.com/item?id=74605
- tlrobinson 19y agoI feel dirty using anti-aliased monospaced fonts in shells and text editors. Apparently there's no good way to turn off anti-aliasing in Eclipse on OS X, which drove me absolutely nuts, but this guy came up with a genius (but ugly) hack to fake it: http://www.partlyhuman.com/blog/roger/aliased-text-mac-eclipse http://www.partlyhuman.com/blog/roger/aliased-text-mac-eclip...
- zandorg 19y agoFor Consolas without Visual Studio 2005 check: http://geekfriendly.org/crap/Consolas/Microsoft/ http://geekfriendly.org/crap/Consolas/Microsoft/
- alec 19y agoI really like DejaVu Sans Mono. I've found it's most readable for me on an AntiqueWhite background (sort of off-white). From my .Xdefaults: Emacs.font: DejaVu Sans Mono-12 Emacs.background: AntiqueWhite You'll need emacs from CVS, but it is a huge improvement over previous versions if only for the better font support.
- kingnothing 19y agoI've been using Bitstream Vera Sans Mono 14pt for about a month now and like it quite a bit. http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html http://www.bitstream.com/font_rendering/products/dev_fonts/v...
- llimllib 19y agoIt needs to be dina for me. http://www.donationcoder.com/Software/Jibz/Dina/index.html http://www.donationcoder.com/Software/Jibz/Dina/index.html
- altay 19y agoI prefer Webdings: http://www.zakie.fsnet.co.uk/ChatRoomsStuff/Help/wingdingsfontchart.htm http://www.zakie.fsnet.co.uk/ChatRoomsStuff/Help/wingdingsfo... Admittedly, there's a bit of a learning curve, but once you've gotten over the hump, it's much more pleasant to code "heart smiley lightning-bolt" than all those ugly letters and numbers.