Live data from Hacker News

Input: Fonts for Code

input.fontbureau.com

101–110 of 136 posts

Re: Input: Fonts for Code

#101
post #80

I'm a font-aholic and reading Hacker News, I get the impression I'm not the only one. My first adventure down the font hole started with Bit Stream Vera Sans Mono followed by Source Code Pro. Stuck with Source Code Pro for many years and even today, not sure any other aliased font looks and works as well as Source Code Pro at almost every size, from the smallest onward. It just looks clean to me. After reading on her…

> Stuck with Source Code Pro for many years and even today, not sure any other aliased font looks and works as well as Source Code Pro at almost every size, from the smallest onward. It just looks clean to me.

This has easily been my favorite font for a long, long time.

Re: Input: Fonts for Code

#102

Earlier quoted context omitted.

There are instances where font matters, and I go back to TurboC on my 8086 and Fortran 'scards' on a VMS mainframe + terminal, so I'm not a whiny mod-crazy hipster. > Fonts Creating Bugs: Some fonts are more prone to errors. Lower case L vs number one, zero vs. capital O, braces vs parens, lowercase g vs 9. Go look at old Unix fixed fonts, and even courier and you can see how hard it is to distinguish. (Unix '10x7' w…

> What kind of savage codes with a proportional font? I have, for more than a decade. Why do you call me a savage? ;-) I know you're kidding, of course, but now you owe me (and yourself) a favor. Go to the linked test page. Pick a color theme you like, change the language if you want and leave the other settings alone. Now do some reading and editing in the source code box. Don't worry about whether you like or disli…

No need to realign manually after renaming variables, we are programmers after all. Use a beautifier for your code. Wrote my first one in STOS Basic on the Atari when I was tired of forced line numbering and wanted to code with function names instead of Gosub 950.

Now the beautifier is often already built into the editor.

I get a lot like this:

  $data = array(
      'a'    => 5,
      'boom' => 25,
  )
And having the values nicely aligned makes it much easier to read when it's 15 variables in that array.

Re: Input: Fonts for Code

#103

Going to take a lot to pry Ubuntu Mono from my hands, but I'm game for giving it a shot.

+1 for Ubuntu Mono. IMO it has just enough styling that rest all feel like, too dull or trying too smart or plainly inconsistent.

Re: Input: Fonts for Code

#104
post #99
post #92

Earlier quoted context omitted.

> Operator Mono That's one funky monospace, with almost Flintstones' feel to it. https://www.typography.com/fonts/operator/styles/

You may also enjoy Fantastique Sans, formerly known as Cosmic Sans, as it is sort of programming version of Comic Sans: https://github.com/belluzj/fantasque-sans

Fantasque Sans Mono is my daily driver, I love it.

Re: Input: Fonts for Code

#106

I like lower case parentheses, for Scheme and Lisp coding. The ligatures in Hasklig gave me this idea. I'm currently using Courier Prime Code with 60% parentheses, vertically centered around the lower case "o", and moved a bit left and right to open up expressions, and for better spacing trailing )))'s after a letter. This is easily accomplished using the demo version of Glyphs Mini, and it puts focus back on the tex…

Can you share a screenshot of lisp code with your font?

Can you share the font?

Thanks.

Re: Input: Fonts for Code

#107
post #88

Earlier quoted context omitted.

> 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 th…

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.

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

#108

I use the GNU Unifont, it's a bitmap font with the added bonus of supporting all Basic Multilingual Plane characters. http://unifoundry.com/unifont/index.html

For those of you who might find Unifont, er, hideous (as I do), it’s worth knowing about Google’s Noto.

Noto is short for “no tofu”, the typographer’s name for the box which is displayed when the system can’t find a glyph for a codepoint.

It’s a decent backing font and guarantees you’ll see something rather than nothing.

Re: Input: Fonts for Code

#110
post #82

Earlier quoted context omitted.

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!!

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.

page 5 has examples
Post reply on HN