News for hackers. Stuff that matters.
Re:Dev Fonts by martincmartin on Friday November 20, 2020 @09:10AM (#25160556)
Am I the only one who uses a proportional font for coding? I find it more readable for the same reason it's more readable in books and other printed media.
Re:Dev Fonts by dragonwriter on Friday November 20, 2020 @02:46PM (#25164121)
> Am I the only one who uses a proportional font for coding?

No, I do it too.

> I find it more readable for the same reason it's more readable in books and other printed media.

OTOH, its really annoying when you edit code from someone who decided to try to "beautify" code by using alignment beyond indentation.

Re:Dev Fonts by jhvkjhk on Friday November 20, 2020 @09:35AM (#25160756)
Which one do you use? I love proportional font but find most of them not suitable for code. Input Serif is the only proportional programming font I can find but it looks too old school.
Re:Dev Fonts by martincmartin on Saturday November 21, 2020 @10:21AM (#25170160)
Georgia, modified to put a slash through the zero, and a small horizontal line, like a serif, on the l. Theory being, letters in serif fonts are easier to distinguish since visually they're more different from each other. Same reason the body text of books uses something like Times New Roman, only headings use a sans serif font.
Re:Dev Fonts by gsoto on Friday November 20, 2020 @03:51PM (#25164799)
I've been using Verdana for ~10 years. I've tried others but keep coming back to it. It continues to be a very consistent and elegant design for screen.
Re:Dev Fonts by rudilee on Friday November 20, 2020 @01:09PM (#25163120)
Try the sans variant, it looks almost indistinguishable from monospace font but more comfortable to read.
Re:Dev Fonts by tobr on Friday November 20, 2020 @09:19AM (#25160620)
Whenever I come across a list like this I hope to find some useful new proportional coding typeface. Nope, not this time either, 100% monospaced. I guess I’ll stick with Input Sans.
Re:Dev Fonts by onetom on Friday November 20, 2020 @12:37PM (#25162779)
I did use proportional fonts with REBOL, Ruby, CoffeeScript and JavaScript. Tried it with tab-indented Clojure code too.

However, 1-2 space indented code becomes just too ambiguous when rendered with proportional fonts, because the spaces are way too thin. I wish editors would render em or en-sized spaces instead, at least for the line-leading spaces. That way we would get the same indentation as intended with monospaced fonts, but still save horizontal space, while maintaining readability...

Re:Dev Fonts by layer8 on Friday November 20, 2020 @03:31PM (#25164610)
I would like to, but I hate tabs (due to the jumps it causes in horizontal cursor navigation, and also due to the nonlinear behavior when inserting/deleting characters preceding a tab in a line), so I would need an editor that widens spaces at the start of line to get sufficient visual indentation at four spaces.
Re:Dev Fonts by gsoto on Friday November 20, 2020 @04:51PM (#25165494)
Interesting. I find that the usual four spaces give me the ideal indent length in proportional fonts.
Re:Dev Fonts by ossopite on Friday November 20, 2020 @05:28PM (#25165846)
in Verdana 4 space indentation is about 3 ordinary characters wide. I find that perfect. code indented with 2 spaces is more problematic though.