Live data from Hacker News

Monospaced Programming Fonts with Ligatures

hanselman.com

121–130 of 246 posts

Re: Monospaced Programming Fonts with Ligatures

#122
post #76

Honeslty, this should be handled by the language itself. If a language supports unicode, why not support ≠ for not-equals instead of "!="? Then provide a pre-processor that will replace all your ugly "!=" with the correct mathematical symbol.

> If a language supports unicode, why not support ≠ for not-equals instead of "!="?

Perl 6 tends to support both multicharacter ASCII operators and single-character Unicode equivalents.

Re: Monospaced Programming Fonts with Ligatures

#124
post #117

This is a deeply personal choice, I feel. I am not a fan of using ligatures in programming code as it gives some abiguity around how many characters are in a given ligature. To each his/her own, I guess.

I think you're maybe confusing monospace ligatures with something else (though I'm not sure what.) In all of these programming ligature fonts, it's quite apparent how many characters a given ligature is composed of, because a ligature still consumes the horizontal width of the characters it's composed of. Look at the "!=" ligature in the Fira Code example: it's a ≠, but it clearly takes up 2em of width.

the issue is that some of the ligatures, especially the arrows, aren't as heavily towards the "clearly". I have difficulty telling the 2 character vs 3 character ones apart.

Re: Monospaced Programming Fonts with Ligatures

#126

Earlier quoted context omitted.

Why did you format the code snippets in your comment in a monospace font? Also, I'm curious. I want to see how the code looks like. I want to know what are the downsides of monospace and the benefits of proportional. The one you cited isn't too much of a deal, since it is just a habit you can create using monospace still.

HN is a web page, and HTML swallows multiple-spaces into a single space.

Let me test                 something.

Edit: crap, doesn't work

Re: Monospaced Programming Fonts with Ligatures

#127

> Picking a programming font is like picking a religion. No matter what you pick someone will say you're wrong. Most people will agree at least that monospaced fonts are ideal for reading code and that both of you who use proportionally spaces fonts are destined for hell, or at the very least, purgatory. I guess I'm destined for hell or purgatory then. Hanselman is not alone. I had the CEO of one company look over my…

[deleted]

Re: Monospaced Programming Fonts with Ligatures

#128
post #15

I like switching fonts every couple of years just to keep it fresh. My font right now is Iosevka: https://be5invis.github.io/Iosevka/ A font generated from its source code. You can build your own variant. It has ligatures as well. I like that it’s not as wide as many other monospace fonts.

Years? I don't even spend the whole day coding, and still switch fonts every month or so.

Exception: all my spreadsheets are in Consolas (an universally available font in Windows environments).

Re: Monospaced Programming Fonts with Ligatures

#129
Tiny font person reporting in. I can easily read 9pt font scaled to 80% or 90% in Qt Creator on my 4k monitor. Some of my other coworkers are unsure if I even have text on my screen. I do it because I can fit 4 split views of 120 columns text on my screen (at 90%, 5 at 80%).

Right now I only have 3 split views, Unit tests, the header and the source file I am working on.That window does not take up the full screen and I have plenty of space for a build VM another text editor for scripts and notes, a file manager and a few consoles.

Re: Monospaced Programming Fonts with Ligatures

#130
post #97

This is a deeply personal choice, I feel. I am not a fan of using ligatures in programming code as it gives some abiguity around how many characters are in a given ligature. To each his/her own, I guess.

Solution in search of a problem.

Aesthetics is a thing.

Otherwise we wouldn't even be discussing typefaces.

Post reply on HN