News for hackers. Stuff that matters.
Re:Ask HN: Anyone using proportional fonts for coding? by zabzonk on Sunday July 30, 2023 @12:17AM (#36927762)
stroustrup switched to using a proportional font in TC++PL 3rd ed. i really didn't like it, but i know quite a few people did. all comes down to taste as far as rendering is concerned, i suppose. but the program text must be able to be rendered in either a fixed or a proportional font, and look sensible in either. and that is not so easy.
Re:Ask HN: Anyone using proportional fonts for coding? by Kwpolska on Sunday July 30, 2023 @04:48AM (#36929211)
It's very easy if you don't align things (e.g. try to keep the = in multiple assignments in the same column) and use a fixed width (1 tabstop?) for continuation lines.

Or, if you are typesetting a book, you can do alignment in the typesetting software instead of adding spaces.