191
What is your favourite font for code ?
(lemm.ee)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
The standard @ symbol has four horizontal lines and worse the right side of the "a" is a vertical line contained inside a circle without touching it.
In a variable width font it's often fully twice as wide as a regular "a" character. The variable width font lemmy uses for example, at least as rendered by my computer has six pixels for a lowercase "a" and also six pixels for the small one contained inside the "@" symbol, then another six pixels of width for the circle around it.
That's an impossible task in a fixed width code font where users typically choose a size so small that the regular "a" can't be reduced any further while still being readable.
Which is why basically all code fonts (including Source Code Pro) cheat and modify the symbol so the inner circle overlaps the outer one on the right edge. Some of them do that better than others at inventing their own variant of @.
Yeah I guess you're right. Probably just seen the Source Code Pro one so many times that I stopped being annoyed with it.
Should try exposing myself to the Jetbrains Mono font until I get used to that instead, then I won't have to fiddle with that part of the IDE settings.