Live data from Hacker News

Fira Code: monospaced font with programming ligatures

github.com

51–60 of 84 posts

Re: Fira Code: monospaced font with programming ligatures

#51

So, neither Emacs, nor vim (and none of it's gui variations) are supported.

I'm finding it works fine in OS X's Terminal.app and (by extension) emacs and vim (El Capitan 10.11).

Good news.

What about standalone (not terminal-based) Emacs on OSX?

Re: Fira Code: monospaced font with programming ligatures

#52
post #38

As a developer, I have spent years writing and learning to parse the meaning of sequences like ==, ===, And even if I could get my preferred editors to work with it, I would see the traditional symbols when reading code on the web, or pairing with another developer who does not use the font. It seems like a barrier to understanding, something that by nature developers strive to eliminate. I'm torn. This idea could be…

> ..developers will insist on using, to the frustration of everyone else.

I'm thinking It won't change the underlying text so I imagine it will only apply to the individual developer choosing to apply these ligatures on their display, as such should have little effect on other devs. Unless you mean to say people might start to use this in documentation and code examples, in which case this is indeed an interesting thing to consider.

Re: Fira Code: monospaced font with programming ligatures

#53
post #45

Earlier quoted context omitted.

Do you not like Inconsolata? https://www.google.com/fonts/specimen/Inconsolata

When it comes to my eyesight, why settle for anything but the best? Consolas is free as in beer to use. I just checked it into my dotfiles which I clone to all my machines.

I would rather put it “free as in torrents”. Microsoft https://www.microsoft.com/typography/fonts/family.aspx?FID=3... offers to buy it for €129

Re: Fira Code: monospaced font with programming ligatures

#54
post #4

Earlier quoted context omitted.

They don't. The == variant is has double the width.

I am aware, I still find them too similar for my likings

Have you tried the font? = and == has 3× difference in width, it’s hard to mistake one for another. I’m using Fira Code for a year now, never had mixed them up

Re: Fira Code: monospaced font with programming ligatures

#55

"Your eye spends non-zero amount of energy to scan, parse and join multiple characters into a single logical one." citation needed

The brain is very good at turning complicated features in to abstract concepts. In fact that is mostly what some parts do. So, not clear if this actually improves things or not. For example, the == and === look quite a bit similar in the font. You have to compare relative sizes, whereas with the normal fonts you can count the spaces. The rest of the ligatures look pretty cool!

You probably mean = and ==. They have 3× difference in width, which, in practice (I’m using Fira Code for a year now), is more than enough to tell the difference.

Regarding the difference between == and ===, latter has three lines (and so does !==), so in fact in Fira Code === and !== the looks implies the meaning, whether in other cases you have to bend your mind to accept that negation of “three equals” is a “two equals and a bang”

Re: Fira Code: monospaced font with programming ligatures

#56
post #48
post #33

On what planet does it make sense to release a programming font which explicitly refuses to support both vim and emacs?

Vim and emacs are terminal applications, thus it's down to the terminal emulator to support the font. Some terminal emulators do (eg Konsole). However many do not. Frankly, I'm amazed at the number of programmers who have made the complaint about vim and emacs support since writing terminal applications (ie stuff that prints to STDOUT) is basically programming 101. It should be pretty obvious to any programmer where…

Emacs is a graphical application to me. That's the default behaviour, how I use it, and what I see people doing things like screencasts use.

Re: Fira Code: monospaced font with programming ligatures

#57
post #38

As a developer, I have spent years writing and learning to parse the meaning of sequences like ==, ===, And even if I could get my preferred editors to work with it, I would see the traditional symbols when reading code on the web, or pairing with another developer who does not use the font. It seems like a barrier to understanding, something that by nature developers strive to eliminate. I'm torn. This idea could be…

Let’s be realistic. You don’t have learn or retrain your brain to understand Fira Code. Symbols are all the same, they just look better.

Re: Fira Code: monospaced font with programming ligatures

#58
post #13
post #11

= vs == vs === seems like a sure way to have bugs.

My thoughts exactly. Probably depends on the person but I am certainly the type who would have trouble detecting the difference.

Just give it a try. There’s 3× difference in width, so _in practice_ you won’t mistake them, ever. I’m using that font for a year now, not a single case of misreading

Re: Fira Code: monospaced font with programming ligatures

#59
post #28
post #22

Earlier quoted context omitted.

Konsole is the only terminal emulator I could get it working with, which is annoying because I much prefer rxvt. Konsole does weird stuff with my terminal colors in tmux, so I ended up not being able to use this nice font when I tried it previously.

Have you tried urxvt, by any chance?

Tried to get it at least readable for 15 mins or so and gave up: http://paste.click/msFBVy

Tried all kinds of variations of

    > fnt="xft:Fira code:pixelsize=10:size=15"; urxvt -fn "$fnt" -fb "$fnt" -fi "$fnt" -fbi "$fnt" -letsp -1
Can't get the font spacing to not be massive and the ligatures don't work.

My build is:

    rxvt-unicode (urxvt) v9.21 - released: 2014-12-31
    options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm

Edit: Tried hasklig that was mentioned. Ligatures still don't work but the spacing is fine: http://paste.click/cEWQZs

Re: Fira Code: monospaced font with programming ligatures

#60

Earlier quoted context omitted.

I'm finding it works fine in OS X's Terminal.app and (by extension) emacs and vim (El Capitan 10.11).

Good news. What about standalone (not terminal-based) Emacs on OSX?

You can try this https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs
Post reply on HN