"Hack" Typeface Is Open Source, Easy On the IDEs 211
Ars Technica writes that "At SourceFoundry.org this week, programmer Chris Simpkins debuted the 2.0 version of Hack, an open-source typeface designed specifically for use in source code." The revamped font is "characterized by a large x-height, wide aperture, and low contrast design in order to be 'highly legible' at common coding text sizes," and the font specimen shows how legible it is right down to downright tiny sizes, though Simpkins says the sweet spot is between 8 and 12 pixels.
Hack's roots are in the libre, open source typeface community, and the project expands upon the contributions of the Bitstream Vera & DejaVu projects. ... Simpkins has been working on the project throughout 2015, and he tweeted that this latest version includes "new open type features, changes in weights, significant changes in spacing, Powerline glyphs, and more." The typeface now comes with four font styles: Regular, Bold, Oblique, and Bold Oblique.
That's great and all... (Score:5, Interesting)
But where can I see it? Where's the damn link?
Re:That's great and all... (Score:5, Informative)
Linky here: http://sourcefoundry.org/hack/ [sourcefoundry.org]
Is there a point to having editors on slashdot anymore?
Re: (Score:2)
probably a nice font, but unfortunately the nice web decided to ignore my browsers's zoom function. so to the authors, get back to me when you get the basics on accessibility right. thanks but no thanks ....
Re: (Score:3)
You see, it's open source and all.
That said, does anyone know how to build that font from source? Nothing about it on their website, or in the README...
Re: (Score:2)
Heh, except it's not a bitmap font. FWIW I discovered "fontforge" which can open the compiled font and lets me edit it, but that's of course the wrong approach..
Re: (Score:2)
..except for the detached dot on the i, which looks nothing like the l. At least the lowercase L looks way different from the uppercase i, which is typically much more of a problem in coding fonts. Likewise O (uppercase oh) and 0 (zero).
Re:That's great and all... (Score:4, Funny)
So is a 1911 shotgun (Score:2, Insightful)
The point of this is being effective not pretty
Re: (Score:2)
In TFA, it is explained that this design eliminates zero/oh, 5/S and 6/G confusion, especially at smaller sizes when you're trying to get as much code context as you can onto your development screen.
Link (Score:5, Insightful)
Fantastic, an article without links...
I know we don't read articles around here, but are we ready to give up even the pretense?
Gotta love that link... (Score:3)
Here's the article (Score:4, Informative)
I know I know.. nobody reads the article. But here's the link:
http://arstechnica.com/informa... [arstechnica.com]
Re:Here's the article (Score:5, Informative)
He took special care to make sure l,I, and 1 all look different, as well as 0, O.
Looks good at low resolution.
Re:Here's the article (Score:5, Interesting)
Re: (Score:2)
Re: (Score:2, Offtopic)
Mate, the A-Z alphabet came from Europe, and 0-9 came from Europe/Middle East/India.
America didn't invent any of it.
Re: (Score:2)
Re: (Score:2)
Yes, it doesn't seem to offer any advantage over menlo - which does have a proper slashed zero.
Re: (Score:2)
Re: (Score:2)
Yes, it doesn't seem to offer any advantage over menlo
I've never really been a big fan of Menlo, the characters just seem... fat to me, the weight is too high. My preferred coding font is Consolas [codinghorror.com].
Re: (Score:2)
Menlo is nice at larger point sizes (I think they recommend 11 point and higher) - but Hack is optimised for 8 to 10 point and looks pretty good down at 6 and 7 point...and for programmers, the more text you can cram onto a screen, the better.
Re: (Score:2)
Technically the slashed zero is a different mathematical symbol. At least it is very close to it.
Re: (Score:2)
Slashed O (Score:5, Informative)
Ø is a letter, not a number.
Re: (Score:2)
It is a programmer's zero, a Danish letter, the math symbol for an empty set, the building industry symbol for diameter, the cursive version the Greek capital letter phi, the slanted version of the London Underground logo, and an emoji for the back view of a smiley with a hat.
And these uses largely have distinct code points in Unicode, because they're still distinct characters with distinct uses despite looking similar. Some people prefer the dotted zero because it is visually distinct from the rest.
Re: (Score:2)
I would like this font a lot more if the zero had a slash through it instead of that ridiculous ellipse in the center.
Zero with a slash through it? You're so US centric!
So the letter 'Ø' is unknown to you I guess... I really don't want 'Ø' confused with '0' ...
Re: (Score:3)
Yes, more open source copycatting proprietary software as "hack" looks like a direct ripoff of Monaco or Menlo fonts found in OS X. How did they get past the copyright lawyers? Although I read somewhere on slashdot that fonts are not copyrightable in the US.
Re: (Score:2)
Original Mac fonts' copyrights have expired (Score:3)
The article states that some countries recognize exclusive rights in typefaces for terms ranging from 14 to 25 years. Monaco and the other original Mac fonts came out in 1984.
Digital outline fonts (.ttf, .otf) are subject to ordinary copyright as computer programs because there is more room for originality in control point placement and hint programming.
Re: (Score:2)
Re: (Score:2)
Re: (Score:3)
Yes, more open source copycatting proprietary software as "hack" looks like a direct ripoff of Monaco or Menlo fonts found in OS X. How did they get past the copyright lawyers? Although I read somewhere on slashdot that fonts are not copyrightable in the US.
Menlo is based upon the Open Source font Bitstream Vera and the public domain font Deja Vu (info embedded inside the font itself).
Re: (Score:3)
It's a simple, clean font.
He took special care to make sure l,I, and 1 all look different, as well as 0, O.
Looks good at low resolution.
So what you're saying is that it's like Inconsolata [levien.com], but fourteen years late, and slashvertised.
Re: (Score:2)
It's a simple, clean font. He took special care to make sure l,I, and 1 all look different, as well as 0, O. Looks good at low resolution.
Indeed yes, I've just installed the odf hack font in ~/.fonts of my cygwin install and a simple
shows it to be a very readable, now default, font for me. It is still quite readable even at 8 points!.
Re: (Score:3)
Looks good to me, but I use a proportional font for coding because it's easier for me to read
That sounds ridiculous to me, but hey, whatever floats your boat.
Re:Proportional Fonts (Score:4, Funny)
You're far too tolerant. These "proportionalists" are the enemy of our freedoms and must all be hunted down and lynched. Even vi and emacs combatants must declare a truce and form a united front. Only monospacers are the True Faith.
Re:Here's the article (Score:4, Informative)
Re:Here's the article (Score:5, Funny)
I like the way it looks good all the way down to 8pt, and is legible even in 7pt. Not that I'll be reading such tiny code, but many quite a few otherwise-excellent fonts I've looked at over the last few years seem to go a bit funny below 12pt.
I love 7pt fonts, they allow me to pack a lot more regex in my Perl one-liners.
Re: (Score:2)
Re:Here's the article (Score:4, Insightful)
The site renders the font in the browser, which often looks different to the IDE. Would be nice to have samples from different operating systems.
Re:Here's the article (Score:5, Interesting)
That looks exactly like the font that is already used as default fixed-width font in my five-year-old install of Ubuntu ...
You're thinking of DejaVu Mono (Score:4, Informative)
That's because five years ago, Ubuntu was shipping with DejaVu Mono, and Hack's website admits that it's a modified DejaVu Mono.
Re: (Score:3)
Re: (Score:2)
Serif fonts suck onscreen.
Re: (Score:2)
Re: (Score:2)
Strategically placed serifs improve the rhythm of the monospaced text by eliminating large gaps on each side of narrow characters and help to distinguish glyphs like the lowercase l and number 1 at small text sizes.
To me, the i and the l are rather ugly. I wouldn't even call those one-sided hooks serifs. The word reminds me of "sheriff" and Wild West newspaper titles with those big bulky I-beams in capitals. Kids these days, they wouldn't know what a fscking I-beam is, given all these unmanly fonts on their Iphones (back in the day, we used capitals in the beginning of proper nouns, and only in the beginning).
With those semi-serifs on top and the lower turns, the i and the l have too much of a Z chara
SubjectsInCommentsAreStupid (Score:2)
Re: (Score:2)
Looks pretty good at 8px to me.
I also note that it's got support for Latin-Extended, Cyrillic, and Greek, which is useful for me.
Re: (Score:2, Insightful)
It's a monospace font... How can you shout about kerning?
Re: (Score:2)
no link because code in it actually looks like ass and is hard to read
Agree. Modifying the 'i' look like an 'l' was a neat trick. I would never have thought of doing that.
Still, it looks like it was designed for people who think white-on-black is a good color scheme for text. You can't expect too much.
PS: And how would "low contrast" be seen as a good thing? Beats me.
Re: (Score:2)
I prefer white on black. Mostly because it doesn't send so much light into your room. And in low light situations it is easer on the eyes.
Re: (Score:2)
Doesn't it hurt your eyes when you switch back and forth between the editor and slashdot?
Re:SubjectsInCommentsAreStupid (Score:4, Insightful)
Leading, on the other hand, is a problem for me with this font. Too much leading (inter-line spacing). I want it a lot tighter vertically.
Re: (Score:3)
This is terrible for a laptop without a lot of vertical screen height. Because of all the extra space between lines for this font, I lose a whole line of text on my laptop compared to DejaVu Sans Mono at the same size (and width). Looks okay on the big screen, though.
Re: (Score:2)
too much of letters can be too close in a monospace; in fact it takes a particular kind of fail to screw kerning up for a monospace font but they did
Re: (Score:2)
You're only half right. Think: "how each character is positioned within it's little box" and you'll understand what he means.
It's a hacked Deja Vu (Score:5, Informative)
It's Deja Vu Sans Mono with some questionable changes to glyph shapes, sizes, and spacing. There's a sore lack of comparison with other programming fonts; Ars is making it out as though we've all been stuck on Courier New until this point, but that's ridiculous. I'd like to see a comparison with, e.g., Consolas, Deja Vu Sans Mono, Courier New, and others.
Re: (Score:2)
I really prefer zero with a dot instead of a slash, but I don't like the oval this zero has in it. It's not vertically centered in the regular variant, and gets reduced to an incongruously thin sliver in bold.
Re: (Score:2)
Re:It's a hacked Deja Vu (Score:5, Informative)
It's Deja Vu Sans Mono with some questionable changes to glyph shapes, sizes, and spacing.
This is exactly what it is. Hack is nothing more than Deja Vu Sans Mono [dejavu-fonts.org] with some crappy amateur edits. For example, the line in the zero, the changes to the i and a -- all are horrible. I also don't like the increased vertical height, since the widescreen monitor plague has made vertical space a premium. I can only assume Hack came from someone grabbing the source for Deja Vu and messing around with it.
Here are some examples [imgur.com] of commonly recommended programming fonts, if you want to compare (open in new tabs for easy comparison):
Hack [imgur.com]
Deja Vu Sans Mono [imgur.com]
Consolas [imgur.com]
Lucida Console [imgur.com]
Anonymous Pro [imgur.com]
I primarily use Deja Vu and Consolas, depending on what I'm doing. There's no way I'd switch either of them to Hack.
Re: (Score:2)
I seriously do not understand what you mean. Buy a square screen monitor.
Re: (Score:2)
Anonymous Pro's is awful. Mainly "a", "c", "e", and "s".
Re: (Score:2)
Agreed. I only included it since it seems to be mentioned every time the topic of programming fonts comes up.
Re: (Score:2)
"For example, the line in the zero, the changes to the i and a -- all are horrible."
Could yo explain.why the new 'i' is horrible but not the original 'l' (ell)? And I don't quite see any difference in 'a' in these two comparisons.
http://gfycat.com/SomberUnited... [gfycat.com]
http://i.imgur.com/8SqL6mT.gif [imgur.com]
Re: (Score:2)
I don't know how that animated GIF was created, but when I looked at the font on my Windows machine I saw the pictures I linked in my original comment. If I left both font sizes at 10 points, Hack was taller than DejaVu. If I changed Hack to 9 points, it was the same height but narrower. In both cases, the a glyph has a curve on the top in DejaVu and is flat in Hack. Perhaps this is a quirk of how the TTF renders in Windows, or maybe the GIF uses a font size of something like 9.5.
I personally don't lik
Re: (Score:2)
Some of the changes seem nice to me, some of them bad, and some neutral. However I use DejaVu regularly and some of these might be just a matter of getting used to. The biggest changes are to i and 0 (zero).
Here's an animated gif from Reddit: http://i.imgur.com/8SqL6mT.gif [imgur.com]
The changes I like are to comma, underscore and minus.
I don't quite understand their changes to i and 0 (zero); do they solve some problem or do they supposedly just look better? I like DejaVu's zero more. It seems to me the new i is close
Re: (Score:2)
Journalists are not developers
Exactly, you can't possibly expect journalists to do any research for the story they're writing, I mean that would be crazy.
so they wouldn't know there was anything after Courier New. Heck, they didn't know there was a New version to Courier.
In any case New Courier never really took off, it was replaced after only a few months by Courier Classic (which was really just standard Courier re-branded).
no comic sans??? (Score:2, Funny)
Does this mean I have to abandon comic sans for my Visual basic coding in MS VS??
Re: (Score:2)
Time to start your rehabilitation.
http://www.comicsanscriminal.c... [comicsanscriminal.com]
Hack easy on the IDEs .. (Score:2)
Re: (Score:2)
Or if you are not root, drop it into ~/.fonts/
Adobe Source Code Pro (Score:4, Interesting)
It looks similar to Adobe Source Code Pro [github.com].
Similar design goals [typekit.com] . Also open source on github.
To my eyes Source Code Pro looks more refined.
Not really good (Score:2)
It's quite ugly. The letter "i" for example, gahh. And too wide (can we say "kerning" about the fixed width fonts?).
Instantly back to "Consolas".
Slashvertisements (Score:2, Interesting)
Please no more of these. I stopped going to that tech toilet Hacker News because of all the "my dumb product and how it's revolutionary" pseudo news bullshit.
is it me? or... (Score:5, Funny)
animated gif which shows the plagiarism (Score:5, Interesting)
This animation shows DejaVu Sans mono vs Hack.
http://i.imgur.com/8SqL6mT.gif [imgur.com]
Hack is the image with the red square
#awkward #ripoff
Re: (Score:2)
Among the differences that the excellent animation makes clear:
1. Lower case I (i) is made inexplicably ugly. Perhaps it helps legibility at lower rendering sizes, I'm not sure.
2. Parentheses have been moved such that the left paren is moved a little more left, and the right paren a little more right: this gives function calls an arguably more natural look if you like space around the arguments. In particular open/close next to each other are less awkwardly placed with the new spacing.
3. Underscore (_) ha
Re: (Score:2)
1. Lower case I (i) is made inexplicably ugly. Perhaps it helps legibility at lower rendering sizes, I'm not sure.
Well, for one thing, it is made more similar to the `l` (el) letter, a big step towards confusion that surely most programmers will love.
elastic tabstops (Score:4, Informative)
If editors would support elastic tabstops, then we would not be limited to fixed width fonts for code.
Emacs (Score:2)
Looks good. I'll give it a try.
However, the ttf version has a problem in Emacs: There is a lot of horizontal space between the characters. About 1/2 the character width.
I do not see this problem in xterm or other applications. Also the font looks fine in the emacs font selector dialog (that's the GTK2 dialog).
The otf version looks fine in Emacs
Re: (Score:2)
Also I noticed that in 11pt the 'u' is taller than other characters in emacs and in some gtk2 apps but not in xterm !!!!
"Sweet Spot" of 8 to 12px? (Score:2)
Maybe I'm just getting old, but... 8 pixels? That's incredibly small on any modern display. If you're stuck in a low-resolution environment I can see that as being a benefit, but...
We already have the coding font (Score:2)
It goes by several names, including Monaco 9, fixed, and 6x13, all of which are quite similar. We don't need another.
I want a font that looks like a VT102 looked (Score:2)
...on a real DEC VT102 display. A friend's dad had one and there were a few in some of the CompSci labs and I remember them being very readable, even in 132 column mode.
I don't think it would be a question of just making a font with the same dots in the same places in a matrix. It was like the character set was designed for the way the video display would render it, providing just the right amount of phosphor blur to create good looking text. Which is probably exactly how it worked.
Reproducing it for a m
Source Code Pro (Score:2)
This is a fantastic font.
Re: (Score:2)
Here's a link that actually shows what it looks like [github.io]. Looks pretty effective to me. Zero and capital oh are distinguishable. Capital eye, low case ell, and digit one are distinguishable. Quotation marks all distinguishable. Very readable.
Low contrast, WTF?! (Score:2)
"Low contrast", WTF?! Low contrast typefaces patently suck for readability. I don't think anyone is so stupid as to believe that low contrast is good for readability, but if there is anyone that stupid, see this [contrastrebellion.com]. There's a website you don't have to squint and strain to read.
Re: (Score:2)
Amen. That site nails the reason why, too - designers who value visual aesthetics over legibility.
I understand why it happens - a contrasting font draws one's eye to the text, allowing the content, rather than the visual design to be the dominant feature on the page - and I'd imagine that's pretty hardwired into our visual perception. So the designer, knowing that he will win no design awards if the judges are distracted from the design by all of that contrasting text, chooses crappy, low-contrast designs.
Glass Tty VT220 or 3270font (Score:2)
http://christfollower.me/misc/glasstty/
https://github.com/rbanffy/3270font
There, your coding-font problems are solved. You're welcome.
For bitmap fonts also see:
http://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0/
I can't take this typeface seriously (Score:2)
They don't have an "lorem ipsum" sample on their webpage.
:)
Just kidding. It looks very nice for console use. I will probably try it out.
Terrible for console (Score:2)
Too tall (Score:2)
Terminus Forever (Score:2)
I've been using Terminus [sourceforge.net] for about a decade and you can rip it from cold, RSI'd hands.
Re: (Score:2)
Here is "my" coding font:
http://www.fixedsysexcelsior.c... [fixedsysexcelsior.com]
That's the font that was there when I first started GW-Basic back in the days, that's the font I have kept. ;-)
Re: (Score:2, Informative)
Re: (Score:2)
I suspect the PEBKAC.
I use a standing desk, you insensitive clod! I can easily demonstrate an id10t problem without the use of a chair-shaped projectile. This BEGS THE QUESTION, though, what if Mr. Ballmer had used a standing desk?
Re: (Score:2)
The "C" can stand for "Carpet".
Re: (Score:2)
If antialiased text looks blurry, the resolution of your display is too low.
Or the R/G/B interleaving on the panel differs from what the OS expects, so you need to tune it (under Windows, from the Control Panel for Cleartype).
Or he needs glasses.
Re: (Score:2)
Nice that it includes some non-ASCII chars (extended Latin-1). But not IPA, which makes it hard for linguists. There are plenty of variable width fonts that cover IPA etc., but fewer fixed width fonts.
That said, I'm pretty sure it's a small minority of users who need this...perhaps one (me). (I used it when writing up computational linguistics in XeLaTeX.) So I'm not complaining!
A digression first:
With all the nasty data collection on today's downloaded freeware, I find it to be an awesome breath of fresh air when slashdot brings us truly no-strings attached free stuff.
Its "(useful) Stupid (Unix|Emacs|xxxxxx)" series was short-lived, but it was cool. And I just can't believe it was all the way back in 2008 - http://ask.slashdot.org/story/... [slashdot.org]
*To the point, now,* this about a free fixed-width font for my IDE, specially after I've been looking for something like the Coffee font in my
Re: (Score:2)