-
Notifications
You must be signed in to change notification settings - Fork 781
Use JetBrains Mono font for code #3555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'd like to try this on our staging server first and see what the user feedback will be. As for the ligatures, they need to preserve the original characters when copy-pasting the code, say to a terminal window. |
I can live with proposed change. I see it as a trade: code reads easier with new font, however less code lines fit to window. New font reduces the number of lines displayed by ~1/3. With current font I see 48 code lines, with new font I'm getting 37 lines. My window size is ~1000x800, I usually code on laptop these days. As I've said I don't mind losing code lines. One thing improves, the other get worse |
More feedback from 2 users:
|
For myself, it reads a bit worse even though I am used to IDEA a lot. The increased height and subsequent decrease of visible code is definitely a concern, even on 23" screen. |
Got feedback from 3 more users that they like the original better. |
Yes, this is mostly due to line spacing. With
I felt the same way about the font at first but it seems it's a personal thing and we can't fit one for everything. I'll try to come up with some user settings/customization tab that would use maybe local storage - this could then be enhanced for many more customizations. |
The main benefit of this font is the increased x-height of the font, meaning that the minuscules are bigger in height compared to typical monospaced fonts, increasing the legibility. The font is, however, opinionated (influenced by DIN fonts) in nature and as a result might not be everyone's cup of tea. Therefore, I think, the way to go could be to enable the users to chose their fonts, as @ahornace proposes. The benefits of the Jetbrains Mono font are definitely there, but everyone's got their own preferences and that's alright. :) EDIT: ad ligatures—if you were to go the route of personalisation, it might not be a bad idea to expose this setting as an option as well. |
Another piece of feedback I received internally:
|
To be fair, one user actually said that the new is easier to read if I understand his feedback correctly. |
This is a nice article promoting JetBrains Mono and Fira Code: I personally think that JetBrains Mono is much better compared to the system-default. However, it's a matter of taste and I don't want to force users so I'll try to work on "settings" which would allow to select:
|
@codehippo made a suggestion to use https://www.jetbrains.com/lp/mono/ so I gave it a shot. It was specifically designed with code in mind, it's open-source with free license, and is already being used in IDEA and other JetBrains IDEs.
The difference for comparison (old on the left, new on the right):

I've tried to use the recommended size of
13px
. I've also disabled ligatures as some seemed weird (e.g.!==
) but some seemed really cool (e.g.->
). It seems they are disabled in IDEA by default as well.I'll have to look into proper line spacing and letter spacing and also change it in print/mandoc css files. However, I wanted to hear opinions first before spending more time on it.
Thanks.