Live data from Hacker News

Hack: A typeface designed for source code

sourcefoundry.org

101–110 of 249 posts

Re: Hack: A typeface designed for source code

#101

Why does source code have to be shown in fixed width? I've been using non-fixed width fonts for about a year now and I find it much nicer on the eyes. The only downside I've found is that sometimes things don't line up quite as nicely, which is purely cosmetic.

My solution to the things not lining up nicely was to give up column alignment completely. In fact, I did that long before I started coding in proportional fonts. I think it was giving up column alignment that opened my eyes to the possibility of using proportional fonts at all. If you don't use column alignment, code looks pretty much the same in a proportional or monospaced font. BTW my favorite coding font right n…

I went through a stint of coding in proportional fonts about 15 years ago. Mostly, I liked it (I used to use Verdana myself, I think?) - you can often get a fair bit more on screen widthwise, which means you can have more files side by side, and the overall appearance is quite pleasing.

Don't recall anything specific that got me to change back, but change back I did in the end. Just a bunch of small things adding up, really, a combination of limitations in commonly available tools, and the repeated need to print nicely-formatted tabular things to the all-pervasive monospaced text console. Swimming against the tide just ended up being more hassle than I felt it was worth.

Re: Hack: A typeface designed for source code

#102
post #13

I desperately want to find a new code font to love but I always return to Consolas.

I've tried them all, Consolas included, and nothing even comes close to Dina -

http://www.donationcoder.com/Software/Jibz/Dina/index.html

† That's for Windows, not Macs.

Re: Hack: A typeface designed for source code

#103
post #74

Earlier quoted context omitted.

Have you tried Source Code Pro ( http://adobe-fonts.github.io/source-code-pro/ )? It's my go-to now when it comes to monospace fonts. I keep it installed on all my systems, right along side my dotfiles.

Mine too, especially for the light version for non-retina OSX!

I love it too, using it on Xcode and iTerm

Re: Hack: A typeface designed for source code

#104

I use Hasklig, even though on a different language. I love having ligatures for common symbols. I should pick up fontforge again and adapt it to PHP https://github.com/i-tu/Hasklig/

The use of ligatures in Hasklig is very intriguing. Would really like to see more work in this vein. Could see benefits to Clojure (arrows) and even => in JavaScript. EDIT: Looks like FiraCode has ligatures too https://github.com/tonsky/FiraCode

This could be really cool, but I can also see it getting distracting and increasing oversight. The >= and and < when debugging. Either way, I can't really try it because neither of those are usable in vim with iTerm2 and I'm not changing my whole toolchain just to try a font.

Re: Hack: A typeface designed for source code

#107
post #84

Earlier quoted context omitted.

Your font is fine. Use whatever you like. Main thing I look for is fonts that differentiate between things like 0Oo and lI1. I prefer open source fonts too. Just don't use a non-monospaced font.

In my day we wrote Pascal in 9-point Geneva and we liked it! ;)

In THINK Pascal? In all those years I've never found another IDE that was as productive as this gem.

Re: Hack: A typeface designed for source code

#108
post #96
post #90

I am partial to Luxi Mono myself: http://frammish.org/luxi.png

I really don't like the font personally, but you know, can't argue with taste. I'm curious though - you're using Geany for working with Go? What level of support does it have?

Geany doesn't support Go out of the box, but you can configure it to have excellent support. In the preferences, you can tell it the "go build" commands, and it will be able to build & run your project in Geany's integrated terminal and attach gdb for debugging. Also in the preferences you can tell it the format of go error messages, which allows it to highlight lines with compile errors.

Re: Hack: A typeface designed for source code

#109
post #74

Earlier quoted context omitted.

Have you tried Source Code Pro ( http://adobe-fonts.github.io/source-code-pro/ )? It's my go-to now when it comes to monospace fonts. I keep it installed on all my systems, right along side my dotfiles.

Mine too, especially for the light version for non-retina OSX!

I'm particularly fond of semi-bold. I find light is too narrow for my vision and taste. After a while of using the light version, it starts to blur together, but semibold works well. But my wife uses light and regular on her high DPI Lenovo.
Post reply on HN