Cosmic Sans Neue Mono: Programming Font
github.com
github.com
It looks great, I'm tremendously impressed, and could easily see this become a standard font for showing code excerpts in blogs etc., especially.
Plus, pretty hilarious name. :)
It's not free, but both a) reasonably priced and b) dirt cheap during their annual sale (that Andy Ihnatko has written about at length).
It's not for everyone, but it's a "Comic Sans Mono" (if you will) that's actually not aesthetically displeasing. I use it occasionally for code, just for fun.
Xcode theme using Times New Roman: http://31.media.tumblr.com/tumblr_kweyqtEkg41qzsc93o1_500.pn...
Download link: https://gist.github.com/coryalder/811771
Not for everyone, of course, and definitely not for all langauges, but still worth mentioning.
It does seem like the programming environment and language must be designed for it to work nicely, though. I've tried proportional fonts in several environments since then and it's always sucked for one reason or another.
Possibly Go is structured enough for proportional fonts to cleanly work though. Haven't tried it yet; I use emacs and last time I tried proportional fonts in that it was a joke. (And that was just straight-up English, no programming at all.)
I suppose I should in fairness observe this was actually a long time ago. Since then emacs has switched to XFT; I haven't tried it since then, because well, as I mentioned most languages don't work very well with it either. But perhaps I will try it in a Go buffer here.
(A few minutes later.) Hey, this isn't so bad. I'm not sure everybody would appreciate me sticking with it since it makes it hard to tell when you've got a "long line", but it's certainly radically better than I remember from the last time I tried this.
For those who may want to play at home, I use the Droid series of fonts for my programming and I just eval-region'ed this:
(custom-set-faces
'(default ((t (:stipple nil :background "#ffffff"
:foreground "#141312" :inverse-video nil :box nil
:strike-through nil :overline nil :underline nil
:slant normal :weight normal :height 105
:width normal :family "Droid Sans")))))
YMMV may vary, of course. Especially if you're not using a white background. :)Go's attempt to auto-align struct name and types isn't working so well, though. (Fortunately, gofmt takes care of it so I still can't be wrong.)
Further follow-up: You don't realize how much you're subconsciously using the "shape" of the code to guide you until you change it and suddenly feel lost, like I'm in a fresh code base I've never seen before, despite the fact I'm actually in something I've more-or-less written from scratch over the past six weeks, which is just about the maximum level of familiarity you can have with a piece of code.
I gave up alignment in my code many years ago, back when I was still using monospaced fonts. I gave it up because I was really tired of fiddling with spaces when I changed a name in code like this:
myType someFunctionName(someType someVariable,
someOtherType someOtherVariable,
int foo) {
...
}
So I started doing this instead: myType someFunctionName(
someType someVariable,
someOtherType someOtherVariable,
int foo
) {
...
}
I found that I just didn't care that "someVariable" and "someOtherVariable" weren't lined up one above the other. In fact, I actually liked the fact that the variable names and types were closer together, so my eyes didn't have to keep scanning across a sea of whitespace to match things up. And I really liked not having to add and remove spaces every time I changed a name.As a bonus, the overall width of my code was often much less, as in this example.
Later I discovered that using this style, my code looked the same in a proportional font as it did in a monospaced font. So I switched to a proportional font and never looked back. But the code is still just as readable in a monospaced font.
I can see how people may like the idea, but it looks like xcode was never tested with proportional fonts...
Yes, it is a proportional font too. But I can assure you that I am in my right mind and am not trolling you.
The C++ code I work with usually has more strenuous alignments which are only possible to get right in monospace fonts.
Alternately, IDEs that support proportional fonts could apply extra tracking to all non-alpha glyphs (and multiple sequential spaces, too).
Georgia is a pretty hardcore proportional font, though. Even the numbers are proportional, where most proportional fonts have monspaced numbers.
http://research.microsoft.com/en-us/people/smcdirm/liveprogr...
Its been fun getting font metrics working right (given a custom editor) and getting key-up and key down to work correctly, but overall, I think this is the future, especially in richer editing environments.
Customized version of Apple's Menlo font. Great monospaced font for development work.
It also has a dot-zero version, which some people love.
Some people find it easier to process, but I never found out why.
Some people insist on seriffed fonts even for small text in low resolution environments because they find them easier to read elsewhere, without considering that the different environments (screen and print) have quite different properties (or being blind to where the difference is, I know someone who blames the OS's font renderer when he is asking it for the impossible). Of course as screens progressively move towards higher PPIs (I'd love a 24"+ display with the PPI of my phone's screen) the low resolution rendering thing will diminish as an issue.
I can't think of any non-esoteric language more symbol-heavy than Obj-C!
Before that, I would have been physically unable to not download and test drive the OP's font.
Of course, I bound C-S-M-SPC to toggle back to monospace when needed.
(setq gpc/proportional-font "Verdana") (setq gpc/monospace-font "Source Code Pro") (setq gpc/default-font gpc/proportional-font)
;; you have to do this twice the first time, and sometimes after that if ;; you've run it in another buffer. I think the variable ;; `buffer-face-mode-face' isn't behaving quite buffer-locally (defun gpc/toggle-proportional-font () "Switch between my default proportional and monospace typefaces." (interactive) (let* ((family (if (boundp 'buffer-face-mode-face) (plist-get buffer-face-mode-face :family) gpc/default-font)) (new-family (if (string-equal family gpc/proportional-font) gpc/monospace-font gpc/proportional-font))) (message "Set font to %s" new-family) (setq buffer-face-mode-face `(:family ,new-family)) (buffer-face-mode t)))
http://i.imgur.com/IthgtiK.png
Same results in Word and in VS using a non-dark theme at 10 and 11pt. At 12, the extra pixel at the top of the a goes away, but is back at 14.
Also, VS doesn't bold it in the drop-down, which I think means it doesn't detect it as a monospaced font.
Any suggestions?
I guess they are not specified well so Windows installs only one of the two font files. So in your case you have only the regular version of the font.
[1]http://typophile.com/files/menlovsdejavusansmono_6131.png
If you wanted to go for that "cool" look set your background to black and your font color to greed.
Not sure if this is an unintentional typo or a suggestion for those working in the financial industry.
Only drawback: 'W' and 'w', plus 'X' and 'x' are extremely similar. This is mostly not a problem, but sometimes it can be a hassle.
Yes, it's probably the most characterless, bland, insipid, and uninspired font out there... but it's also the most perfect-looking. And, it's readable and takes up less space than most others.
I'm surprised not more people use it.
It's a ttf font which simulates the old DOS font which, in my opinion, is the crispest and nicest looking font for a terminal. Try it out! (Just remember to turn antialiasing off)
Also, worth mentioning, here's the list of best programming fonts for those who're interested : http://www.slant.co/topics/67/~what-are-the-best-programming...
See line 7, "summary":
https://github.com/belluzj/cosmic-sans-neue/blob/master/Spec...
It doesn't match the rest of the characters and it's just too smushed-up for my tastes.
For a moment I thought this was going to be some sort of parody, kinda like that enterprise version of fizzbuzz someone wrote a while back.
I'm actually rather fond of this font given the first impression its bestowed upon me.
To my eyes, they're just visual noise. Do they confer any benefit in long-term use, or are they just whimsy?
Boy was I wrong.
even the old lucida console is better than all those free fonts.
Might try for a bit.