You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities
We have the settings editor.fontFamily and editor.fontSize, but I'm missing an editor.fontWeight. This is most needed when using a dark theme, as folds become visually bolder in that setting. Compare for example Code using Input Mono (regular):
with Sublime Text using Input Mono Thin:
This could be either accomplished by a weight setting similar to the CSS font-weight, or as part of the font name (i.e. Sublime text accepts "Input Mono Thin" as the font name, while Code currently rejects that).
Oh, and kudos for creating an editor experience to rival the best on Mac! I never thought the day would come when I'd run a Visual Studio product on Mac, but I'm happy to be proven wrong!
Reacted by Mohsen Azimi, Jason Pleau, Jonathan Wells, Guillermo Ignacio Enriquez Gutierrez, Tom Pritchard, darkred, Andrew Krueger, dorseth, Nikhil Benesch, Mirko Kirović and 1 more
Jakob Borg (@calmh) While waiting for this, there is a workaround for us OS X users, as seen on this Issue from Atom: atom/atom#3790
(Basically, strip spaces, and put a hyphen between the font name and the weight, so InputMono-Thin in your case. I use Source Code Pro Light myself, and so setting it to SourceCodePro-Light works for me)
Reacted by Valentin von Guttenberg, Алексей Трофимов, Joseph Christopher, Roman Tarnavski, Mohsen Azimi, A. Miezan Echis, Boris Musatov, Josh Wong, Guillermo Ignacio Enriquez Gutierrez, Daniel Cardoso and 4 more
fwiw, I started work on this by implementing the "fontWeight" setting.
I had to stop for a bit since at the time, current master did not work correctly for the terminal panes, I will continue work in the next weeks after my vacation.
Reacted by Konstantin Ilchenko, Calebe Aires, Matthew Kelch, Jonathan Wells, mnsr and deanmongel
Reacted by conceptualspace, Jonathan Wells and Elbert Cortez
alexandrudima I found that, if I inspect your GitHub comment in Chrome, and manually set style font-weight: 300, the font will get thinner. Interesting.
I am trying different values, but font looks the same
Also it would be great to add list of possible values from editor.fontWeight in Default Settings file. Now user has to read PR/codebase to understand what is acceptable
It does work. It's just Consolas doesn't have light version. Don't know where to report it. But, i think, MS employees here could forward it to font devs.
regs01 I was using Operator Mono. I found a way to make it work without explicitly setting fontWeight. I used OperatorMono-Light for family which helped set the correct fontWeight. Thanks.
Hi everyone. alexandrudima What confused me is what comments are rendered with a font weigth more lighter that the rest of the code. Is it some config that you guys pass to chromium to render this way? I think if all the code render with the same weigth of comments, everybody will be happy. some idea?
Part of the perceived font-weight is related to contrast between background and the font itself. For example the Monokai is quite unbearable, font colors are rather bright on dark background. Bright letters are using more sub-pixels and thus creating the too-bold-font perception. I've switched to Atom One Dark theme and everything looks better now. Even VS Code own softer Color Themes look better (Monokai Dimmed etc). And for the comment that comments are rendered lighter - as comments are dimmer, they are using (visually) less sub-pixels thus they are visually lighter.
TanelS Thanks for the explanation. Although, comparing the same font + background on VS Code (left) and cmder (right), they display very differently, and cmder looks much more crisp. Is this entirely the fault of how chrome renders fonts?
Austin Thiel (@austinthiel) VSCode uses Electron as rendering engine. And most of the font anomalies are because of that. Hopefully the Electron devs are able to handle the font-weight problems. Meanwhile I personally use less contrasted color themes as a workaround.
I see that now. I chose the font + background on another Electron app and it's got that same fuzz-factor to it. That's a bummer, I hope it's resolved soon.
Edit: If anybody's looking for a decent crisp-looking font, try Inconsolata
feature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities
Activity
alexdima commentedon Nov 24, 2015
Thank you for the kind words. Will look into adding this
torarvid commentedon Dec 9, 2015
Jakob Borg (@calmh) While waiting for this, there is a workaround for us OS X users, as seen on this Issue from Atom: atom/atom#3790
(Basically, strip spaces, and put a hyphen between the font name and the weight, so InputMono-Thin in your case. I use Source Code Pro Light myself, and so setting it to SourceCodePro-Light works for me)
calmh commentedon Dec 9, 2015
Oh! Neat! I had resorted to disabling the variants except thin and bold in font book. :)
jpleau commentedon Jun 15, 2016
Hi, any updates on this? Some fonts look better when they are bold, an "editor.fontWeight" or "editor.fontStyle" setting would be awesome!
Thanks
mehas commentedon Aug 4, 2016
Consolas (the default monospace typeface for Windows) appears bold in VSC for some reason, but others don't.
escobera commentedon Aug 5, 2016
This feature is really a deal breakeer for me. Any news on this? alexandrudima
alexdima commentedon Aug 5, 2016
PR welcome, IMHO it is straight-forward to implement by following the
fontFamilyorfontSizesettings.jpleau commentedon Aug 5, 2016
fwiw, I started work on this by implementing the "fontWeight" setting.
I had to stop for a bit since at the time, current master did not work correctly for the terminal panes, I will continue work in the next weeks after my vacation.
conceptualspace commentedon Aug 5, 2016
💃
13 remaining items
mouhong commentedon Sep 12, 2016
alexandrudima I found that, if I inspect your GitHub comment in Chrome, and manually set style
font-weight: 300, the font will get thinner. Interesting.alexdima commentedon Sep 12, 2016
One thing to keep in mind is that I am on Chrome 53, while VSCode is on Chromium 49, so that might have an impact too.
dkondratovych commentedon Sep 28, 2016
alexandrudima
Doesn't work for me
I am trying different values, but font looks the same
Also it would be great to add list of possible values from
editor.fontWeightinDefault Settingsfile. Now user has to read PR/codebase to understand what is acceptableregs01 commentedon Sep 28, 2016
It does work. It's just Consolas doesn't have light version. Don't know where to report it. But, i think, MS employees here could forward it to font devs.
wprater commentedon Oct 14, 2016
are we able to expose
-webkit-font-smoothing: antialiasedso we can get a better rendering on macOS?regs01 commentedon Mar 5, 2017
wong
Until we have Consolas Light alternatively you can use Source Code Pro from Adobe.
https://github.com/adobe-fonts/source-code-pro/releases
chantlong commentedon Mar 5, 2017
regs01 I was using Operator Mono. I found a way to make it work without explicitly setting fontWeight. I used OperatorMono-Light for family which helped set the correct fontWeight. Thanks.
gabrielnogueira commentedon Mar 29, 2017
Hi everyone.
alexandrudima What confused me is what comments are rendered with a font weigth more lighter that the rest of the code. Is it some config that you guys pass to chromium to render this way? I think if all the code render with the same weigth of comments, everybody will be happy. some idea?
austinthiel commentedon Aug 14, 2017
I'd like to hope that gabrielnogueira is onto something here. Can anybody (no pun intended) comment on that?
TanelS commentedon Aug 14, 2017
Part of the perceived font-weight is related to contrast between background and the font itself. For example the Monokai is quite unbearable, font colors are rather bright on dark background. Bright letters are using more sub-pixels and thus creating the too-bold-font perception. I've switched to Atom One Dark theme and everything looks better now. Even VS Code own softer Color Themes look better (Monokai Dimmed etc). And for the comment that comments are rendered lighter - as comments are dimmer, they are using (visually) less sub-pixels thus they are visually lighter.
austinthiel commentedon Aug 14, 2017
TanelS Thanks for the explanation. Although, comparing the same font + background on VS Code (left) and cmder (right), they display very differently, and cmder looks much more crisp. Is this entirely the fault of how chrome renders fonts?

TanelS commentedon Aug 14, 2017
Austin Thiel (@austinthiel) VSCode uses Electron as rendering engine. And most of the font anomalies are because of that. Hopefully the Electron devs are able to handle the font-weight problems. Meanwhile I personally use less contrasted color themes as a workaround.
austinthiel commentedon Aug 14, 2017
I see that now. I chose the font + background on another Electron app and it's got that same fuzz-factor to it. That's a bummer, I hope it's resolved soon.
Edit: If anybody's looking for a decent crisp-looking font, try Inconsolata