Live data from Hacker News

Fira Code: monospaced font with programming ligatures

github.com

71–80 of 84 posts

Re: Fira Code: monospaced font with programming ligatures

#71
post #46

Earlier quoted context omitted.

It's a shame the C/C++ standards committee(s) didn't just copy Verilog's base-n notation when they added the "0b" prefix. It's nice to be able to write large constants with optional underscores every four or eight digits, e.g. 32'hffff_0867_5309_beef, or 12'b1101_1110_1010.

You can write 1'000'000 for a million in C++14. http://en.cppreference.com/w/cpp/language/integer_literal . They didn't use underscores because _100_000 is a valid identifier in C/C++. Arbitrary bases aren't there.

Neat, I didn't know they'd done something similar with single quotes. (No law said they had to allow constants to start with an underscore, of course...)

Re: Fira Code: monospaced font with programming ligatures

#72
post #70
post #57

Earlier quoted context omitted.

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.

The difference between e.g. -> and --> is a length of a small solid line. To me that's equates to a huge drop in readability, countering the easy to brain-parse argument.

Agree, but no language uses both -> and -->

Re: Fira Code: monospaced font with programming ligatures

#73

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?

Also, just got report that MacVim supports ligatures in latest version

Re: Fira Code: monospaced font with programming ligatures

#74
post #69
post #66

Earlier quoted context omitted.

Are there any problems with installing otf on windows? I installed and used them just fine

See I knew it was a silly question :) A few minutes ago I converted the otf files to ttf using font forge. That appeared to work, but it seems the ligatures are gone. On top of that the ttf version of the font did not show up as a monospaced font in my code editor. I might have done something wrong though as I only dabble a bit with font forge. Then I just did what you suggested, install the otf instead (d'oh) Now th…

What editor do you use? Is it listed as supported here? https://github.com/tonsky/FiraCode#editor-support

Re: Fira Code: monospaced font with programming ligatures

#75
post #29

Earlier quoted context omitted.

At least for me, monospaced fonts are very helpful for looking at column specific features. == and === are row specific, so seeing the delimiters between them makes them easier to parse on a row level for me.

`===` is triple stroked in these fonts, but that is probably not enough for you. Just saying though! :)

Thanks for pointing that out, I didn't notice! I think that I could get used to that.

Re: Fira Code: monospaced font with programming ligatures

#76
post #53
post #45

Earlier quoted context omitted.

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

Maybe that's what it is now, but there was a window of time when Microsoft offered it as a free download off MSDN to anyone who wants it. That's when I got my copy.

Re: Fira Code: monospaced font with programming ligatures

#77
post #74
post #69

Earlier quoted context omitted.

See I knew it was a silly question :) A few minutes ago I converted the otf files to ttf using font forge. That appeared to work, but it seems the ligatures are gone. On top of that the ttf version of the font did not show up as a monospaced font in my code editor. I might have done something wrong though as I only dabble a bit with font forge. Then I just did what you suggested, install the otf instead (d'oh) Now th…

What editor do you use? Is it listed as supported here? https://github.com/tonsky/FiraCode#editor-support

No, it is an editor called "the hammer" [1]. As it is I am one of the developers of that editor. It is rather specialized and targets the programming language DataFlex. The editing component is based on the codemax component. While I have access to all the code, I'm not sure on how-to add ligatures support.

[1] http://vdf-guidance.com/The_Hammer.asp?Page=THEHAMMER

Re: Fira Code: monospaced font with programming ligatures

#78
post #48

Earlier quoted context omitted.

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.

[deleted]

Re: Fira Code: monospaced font with programming ligatures

#79
post #48

Earlier quoted context omitted.

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.

That's not emacs then, it's a Cocoa / Win32 / whatever port of emacs. Unless your talking about "graphical" in the same sense that ncurses is. But either way, emacs default behaviour is a terminal application.

Re: Fira Code: monospaced font with programming ligatures

#80
I tried using ligatured when Pragmata added them, but the issues made me return to the normal version.

If you use your editor for multiple languages and documentation as well, you may find things like lines in comment blocks made of '%', '#', or '-' to break from the ligatures. Also if your doc markup(-down) uses underlines of '-' or '=' for headings, they are affected.

On Windows, I found some editors where the ligatures were enabled, some where they weren't, and not many where you had any option to toggle either way.

Post reply on HN