News for hackers. Stuff that matters.
Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @12:24PM (#18892162)
Yet to find something that suits me better than Fira Code. It's a decently good-looking font with ligatures.

I'm a sucker for ligatures.

Re:Input: Fonts for Code by noir_lord on Saturday January 12, 2019 @01:03PM (#18892405)
Iosevka for me, you can custom build it with the letter designs you want, it supports ligatures and it's condensed without been cramped (also has Term, non-term and Slab variants in the same build).

It's replaced my mono font everywhere, Fira Code is lovely but it feels way too wide once you've used Iosevka.

The only font that comes close is Pragmata Pro but that's not free.

https://raw.githubusercontent.com/be5invis/Iosevka/master/im...

Re:Input: Fonts for Code by cschmidt on Saturday January 12, 2019 @01:21PM (#18892493)
I paid for the original Pragmata font in 2004, and he has kept sending updates surprisingly often ever since. I suppose I upgraded to Pragmata Pro in 2011, so only 8 years of updates on that. Money well spent for 40 hours a week of use

https://www.fsd.it/shop/fonts/pragmatapro/

Re:Input: Fonts for Code by noir_lord on Saturday January 12, 2019 @04:01PM (#18893264)
I wasn't knocking Pragmata Pro and the dude has the right to charge for his work.

That said for my needs Iosevka and Pragmata are pretty much a dead heat and one is free and open.

If you prefer Pragmata then sure the the cost per hour over a decade is irrelevant (the same reason I pay out of pocket for intellij ultimate at work, work would pay for it but I use it outside of work and it's not worth the hassle).

Re:Input: Fonts for Code by fileeditview on Saturday January 12, 2019 @02:59PM (#18892959)
That looks interesting. Thanks for sharing.

Commenting to find this later on.

Re:Input: Fonts for Code by ztjio on Saturday January 12, 2019 @02:52PM (#18892932)
I will chime in as another huge Iosevka fan.

I have never really liked any of the other popular coding fonts and it really comes down to one thing: They are all stupid sans-serif fonts.

I have found, ever since displays grew out of the garbage 100 dpi age, that serif fonts are vastly more enjoyable to look at and easier to quickly visually discern.

As a result, Iosevka Slab is basically the only code-optimized font I can even consider.

Beyond that, I prefer a narrower font for monospace text. Monospace is already such an awful layout for readability, but, making it narrower at least helps reduce the horizontal scan range without imposing insane limits like 72 character lines.

So, those are my reasons anyway.

Re:Input: Fonts for Code by Stratoscope on Saturday January 12, 2019 @04:40PM (#18893431)
> Monospace is already such an awful layout for readability...

So why code in a monospaced font then? There's no rule that says you have to write code in a monospaced font. I've used proportional fonts for many years, and almost every programmer's editor supports them.

I'm currently using a slightly modified version of Trebuchet MS (I replaced the tilde with a better one). Another example is Input Sans, one of the three fonts today's thread is about.

If you like proportional fonts, go for it!

Re:Input: Fonts for Code by ztjio on Saturday January 12, 2019 @05:56PM (#18893803)
Reasons: I haven't found a proportional code font I like very much and, more importantly, many—MANY—existing code files include text arranged with the expectation of monospace fonts and if you use proportional, they become a mess.
Re:Input: Fonts for Code by samatman on Saturday January 12, 2019 @10:45PM (#18894915)
Agreed.

All respect to those who like proportional fonts, to each their own, but I think of code as a 2d grid.

Same reason I use syntax highlighting: color is another dimension that helps me see what I’m doing. This is particularly notable in Lisps, where turning on rainbow parens can be like switching on a light switch, immediately helping me understand the shape of the forms.

Re:Input: Fonts for Code by yellowbuilding on Monday January 14, 2019 @07:31AM (#18902496)
Inconsolata
Re:Input: Fonts for Code by noir_lord on Saturday January 12, 2019 @04:02PM (#18893272)
My reasons are identical to yours, I also use the Slab version since my 'worst' screens are 2560x1440@24" it's just lovely on Linux.
Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @01:50PM (#18892638)
> but it feels way too wide

It seems the weirdest thing to me that fonts – especially monospaced fonts – vary by width.

I'm working on a forum redesign at the moment. Picking a font took a surprising while, because the font the forum had used – Source Sans Pro – is naturally narrow. Put something wider in, and it's entirely not the same.

I have, similarly, replaced monospaced fonts everywhere with Fira Code. Characteristically, Iosevka looks too narrow to me. :)

Re:Input: Fonts for Code by jimbo1qaz on Saturday January 12, 2019 @02:54PM (#18892937)
I think Mononoki has reasonably similar proportions to Source Sans (matches better than Source Code), and is pretty and highly legible. Only issue is "bold is taller than normal" and vertically misaligned parentheses.
Re:Input: Fonts for Code by Wildgoose on Sunday January 13, 2019 @05:34AM (#18896088)
I'm fond of Iosevka as well - but the downside to the narrow font is that it uses very slightly more vertical space than say Bitstream Vera Sans which is my other "go to" font.

Great font though. Recommended.

Re:Input: Fonts for Code by HelloNurse on Saturday January 12, 2019 @02:40PM (#18892891)
I use Iosevka (in Notepad++) and M+ (in Emacs), both very nice at rather small sizes.
Re:Input: Fonts for Code by turdnagel on Saturday January 12, 2019 @03:42PM (#18893182)
As cool and readable as ligatures are in print design and typography, I find them to be unhelpful and even sometimes downright confusing when it comes to code. For me they violate a general (unspoken) principle of monospaced fonts, which is not just that each character is the same width, but that each character is discrete. It can be difficult to tell _how many_ characters the ligature comprises.
Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @03:51PM (#18893218)
When do you need to tell discrete characters apart? Is it personal, rather than professional – something about the way things ought to be, from your perspective?
Re:Input: Fonts for Code by Kagerjay on Saturday January 12, 2019 @01:36PM (#18892564)
I'm too used to non monofonts, but firacodes arrow ligatures makes looking at JavaScript es6 syntax so much easier.

Are there nonmono fonts with arrow ligature support like firacode?

Re:Input: Fonts for Code by seumars on Sunday January 13, 2019 @11:29AM (#18897270)
I find Fira Code to have too harsh serifs and unnecessary details like the open lowercase g. Given my love for Input, I emailed DJR (the designer) about including ligatures but he wasn't interested, so I drew a set of my own: https://pasteboard.co/HWhfhsE.png
Re:Input: Fonts for Code by MarsAscendant on Sunday January 13, 2019 @12:20PM (#18897542)
You know what I never expect to do? Use a VPN just to access the websites my Internet provider is too slow to reach. Tried to do that with the link you posted, still to no avail.

Could you repost your image to, say, Imgur? I'd like to see how you'd implemented ligatures.

(Turned out I remember Input because I saw Output, a font by the same author, and thought "Oh, that's nice! I could use that on my webs-- oh, it's not cheap. Bugger".)

Re:Input: Fonts for Code by seumars on Tuesday January 15, 2019 @09:34AM (#18911329)
No problem. Here is the image: https://imgur.com/a/0wZsbQE
Re:Input: Fonts for Code by MarsAscendant on Friday January 18, 2019 @12:33PM (#18940998)
Ooh! Pretty!

Nice work there.

Re:Input: Fonts for Code by bradknowles on Sunday January 13, 2019 @02:10AM (#18895546)
Why do you like ligatures?

What, on ${DEITY}’s Blue Earth, can ligatures possibly do for you as a programmer, that is in any way useful?!?

Re:Input: Fonts for Code by MarsAscendant on Sunday January 13, 2019 @02:48AM (#18895627)
I'm not a programmer. I'm a writer and a designer. Coding is what I do when I don't do either – less as a hobby and more a way to vent my creative frustration.

Aesthetics is important to me. Being in an ugly environment brings me down. Fira Code brings positive aesthetics with it. And ligatures are cool.

I'm the kind of a person that does things simply because they're cool.

Re:Input: Fonts for Code by Syzygies on Sunday January 13, 2019 @12:10PM (#18897489)
Haskell without ligatures -> <- => <= looks every bit as amateurish as Lisp without lower case parentheses.
Re:Input: Fonts for Code by jakear on Saturday January 12, 2019 @01:35PM (#18892555)
I used Fira because I felt the same about ligatures, until I found Hasklig. It has similar ligatures, but the overall font is better imo. https://github.com/i-tu/Hasklig
Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @01:56PM (#18892676)
Fira Code's author says Hasklig was the inspiration behind his work.
Re:Input: Fonts for Code by resheku on Saturday January 12, 2019 @04:20PM (#18893343)
same, Hasklig is my favorite, it's just like Fira only better
Re:Input: Fonts for Code by amanzi on Saturday January 12, 2019 @04:02PM (#18893271)
Came here to say the same thing. I love the Fira Code ligatures.
Re:Input: Fonts for Code by satysin on Saturday January 12, 2019 @02:28PM (#18892837)
I loved Fira Code as well but it was love at first sight with IBM Plex https://www.ibm.com/plex/
Re:Input: Fonts for Code by paultopia on Saturday January 12, 2019 @03:25PM (#18893096)
Oh god, that website though. How many CSS animations do I have to suffer through before it lets me scroll down to any actual information? Make it stop!!
Re:Input: Fonts for Code by pault on Saturday January 12, 2019 @05:20PM (#18893606)
Man, you weren't kidding! That is literally the most useless website I've ever seen. I spent over two minutes on it and still couldn't find a simple table of examples.
Re:Input: Fonts for Code by stallmanite on Saturday January 12, 2019 @11:02PM (#18894984)
page 5 has examples
Re:Input: Fonts for Code by shrikant on Monday January 14, 2019 @06:43AM (#18902308)
I struggled to find it so you don't have to -- here's the download link: https://github.com/IBM/plex/releases

Seriously though, what an atrocious site...

Re:Input: Fonts for Code by satysin on Sunday January 13, 2019 @08:01AM (#18896503)
Yes the website is modern garbage but the font is superb.
Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @02:54PM (#18892941)
I was impressed with IBM Plex Sans at first, too. It was going to be my website's main font. I switched it for Inter UI, because it spoke to me more.

(Also, thanks for reminding me of it. I think I've just found the font for a redesign project.)

Re:Input: Fonts for Code by MrTonyD on Saturday January 12, 2019 @04:26PM (#18893369)
Checked the website - looks like the zero isn't slashed, and I've spent too much time chasing down errors caused by oh's as zeros.
Re:Input: Fonts for Code by satysin on Sunday January 13, 2019 @08:00AM (#18896497)
It is dotted zero, although I have seen modified versions with a slashed zero.
Re:Input: Fonts for Code by MrTonyD on Monday January 14, 2019 @12:26AM (#18900875)
The examples on the IBM site had zeros without slashes or dots. And the character set showed a slashed zero exists, but it isn't the default zero. I believe you if you're using it, but I'm not sure where your dotted zero came from.
Re:Input: Fonts for Code by satysin on Monday January 14, 2019 @02:29AM (#18901310)
You sure you're checking the example for the mono variant of the font? It shows as dotted for me on the site. https://i.imgur.com/Y9bK6Yh.png
Re:Input: Fonts for Code by jabajabadu on Saturday January 12, 2019 @01:37PM (#18892569)
Have you considered monoid? It’s a fantastic font with ligatures.

https://larsenwork.com/monoid/

Re:Input: Fonts for Code by MarsAscendant on Saturday January 12, 2019 @01:55PM (#18892668)
I've looked at it just now. Found it too... skrawny? The lines are too thin and too jagged – the latter probably a consequence of the former. You can see how it differs from other proposed fonts in this thread.
Re:Input: Fonts for Code by mattxxx on Saturday January 12, 2019 @12:49PM (#18892333)
This comment got me to look at Fira Code... I think this one might stick.