r/C_Programming • u/abbeyroad1681 • Jul 29 '26
Best font for C program editors
I am trying to update the cooledit ( see my devel branch ) font handling and want to choose the best default font for C. The history of cooledit's font looks like this:
90s: X11 8x13bold because it was closest to the DOS font of the Borland C IDE.
2000s: Switched to 8x13B.pdf.gz when I implemented Unicode which required font rendering on the client end.
2010s: Monitors res got more fine: so I switched to 9x15B.pdf.gz
Of course the user can choose any font on the command-line, but I'd like a good font by default.
I have tried JetBrainsMono and MS consola.ttf but these have a blurry rendering at a similar height as 9x15B, by comparison.
There are a lot of fixed-width mono fonts, but each has an agenda, like trying to look like some OS from way-back-when for nostalgia reasons.
If you watch the video you will see 9x15B.tar.gz looks way better than the others.
I just wish there were something better than 9x15B (which was developed for X in the 1980s BTW).
Thoughts?
6
u/mjmvideos Jul 29 '26
If you think 9x15B looks best then use that. I don’t see why a font’s creation date should have anything to do with it. But here are some other opinions: https://www.reddit.com/r/vscode/s/pLRfXtRxSg
3
u/aelxemyr Jul 29 '26
Iosevka. You can generate your own custom Iosevka font!
2
u/lellamaronmachete Jul 29 '26
Nah, IBM VGA 8x14 since forever. Through the years and still beautiful.
68
u/Rockytriton Jul 29 '26
Been programming in C for 30+ years, can’t say I ever cared what font it was, as long as it’s monospace, I guess just use whatever default one is used in vs code or kate
17
u/thank_burdell Jul 29 '26
Wingdings.
10
u/questron64 Jul 29 '26
A monospace font. Almost any of them with do fine.
8
u/Key_River7180 Jul 29 '26
terminus?
1
u/abbeyroad1681 Jul 29 '26
The discussion I wanted to have (ermmm, no one seems to have got this) is that there is a technical deficiency with fonts that has not been resolved. To remedy this, both a new type of font format and a new font rendering method might need to be invented -- what would result in a 9x15B 'U' that is identical for the vertical stems, but has anti-aliasing for the arc. This would probably need to work with strokes and not outlines (like TeX metafont and not ttf). So it would be scalable, but would never make a straight vertical or horizontal line that has a gray-level and would thus be sharp.
Is there any such project?
So, I did learn from the responses that there are many many more programmers fonts than I thought existed. Thanks for everyone's input. So certainly, the intermediate step is to package them all with cooledit and give these as options. I think it would be prudent to have a drop-down with many different font choices.
You can find cooledit by searching on github.
4
u/hyperactiveChipmunk Jul 29 '26
Inconsolata is my go-to for the past fifteen years or so.
1
u/eteran Jul 29 '26
My dude, if you want people to use the editor, you gotta link to the repo!
I assume it's this?
https://github.com/paulsheer/cooledit
3
u/MT4K Jul 29 '26
Any font as long as the pixel density is high enough, like 4K not larger than 27″. I prefer Consolas and it’s beautiful on 24″ 4K monitor Dell P2415Q that I use for 11+ years already.
3
u/Interesting_Buy_3969 Jul 29 '26
.....is this what Emacs, with custom font size for each buffer, looks like?
3
u/Interesting_Buy_3969 Jul 29 '26
By the way, nobody mentions Ubuntu Mono for some reason, but I love it. Give it a try.
3
u/TheChief275 Jul 29 '26
I use Monaspace Neon. Looks absolutely fantastic
3
u/BarMeister Jul 30 '26
Maple Mono for me.
2
u/sciencekm Jul 29 '26
Try Intel One Mono.
2
u/mikeblas Jul 29 '26
Your devel branch? What do you mean?
2
u/farineziq Jul 29 '26
Papyrus
2
u/loverthehater Jul 29 '26
I found the FiraCode nerd font and it's served me well for quite a few years, pretty ligatures and easy on the eyes
2
u/nukestar101 Jul 30 '26
Gitlab mono or comic sans no in-between
1
u/wtfbenlol Jul 29 '26
Dealers choice, but I prefer any fixed width font for readability
1
u/duane11583 Jul 29 '26
x11 10x20 is the one I always used.
1
u/rias_dx Jul 29 '26
I was using Monocraft and just switched back to the default font of my environment after 6 months.
1
u/nad6234 Jul 29 '26
Just as long as it's monospace, clearly shows the difference between zero, uppercase O, lowercase L and number one. Also, no ligated stuff. Then I'm good.
I spent over a decade coding on 80x25 sized displays, so have a soft spot for that kinda ratio of side and line separation.
1
u/realhumanuser16234 Jul 29 '26
15 pixels is tiny (at 92PPI), I would never use a font that small. Bitmap fonts also just don't work with fractional scaling, so it's far from the best.
1
u/letmehaveanameyoudum Jul 29 '26
first one, also font doesn't matter
1
u/lenn_eavy Jul 29 '26
Well of course Times New Roman. Fun fact I have just discovered is that if you google the font name, it changes the font for the search results. Works for TNR, also for Comic Sans MS.
1
u/unkindle_blue Jul 29 '26
Nah, I like more Kane theme
1
u/LordEli Jul 29 '26
i like IBM VGA8
1
u/my_password_is______ Aug 01 '26
comic sans serif obviously