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
{{ message }}
Repository navigation
[Question] How can I use only light and light italic by default in vscode? #500
I have tried to build my self based on main branch, and I just allow CascadiaMono-Roman_Light and CascadiaMono-Italic_Light-Italic font in my font setting.
But I have issue to make use of them in vscode, all fonts in vscode is italic..
If I enable CascadiaMono-Roman and CascadiaMono-Italic, this issue disappeared... But the weight is too high for me, so I just want to use a lighter version..
One is that you should use the PR that I submitted last week as that has necessary improvements to the name table (it should be pushed to main this week).
Two, it appears you’re trying to use the Variable font version of the fonts. So either you will need to set the font weight in VSCode to a lighter weight (say, 300), or switch to the stat instances (which the name table fix should help with).
Hi, thanks for your quickly reply :-)
But sorry it seems this doesn't working for me.
One is that you should use the PR that I submitted last week as that has necessary improvements to the name table (it should be pushed to main this week)
Two, it appears you’re trying to use the Variable font version of the fonts. So either you will need to set the font weight in VSCode to a lighter weight (say, 300), or switch to the stat instances (which the name table fix should help with).
Here is the screenshort when no setting lighter weight:
Here you can see that I'm using the source code from your PR (the italic font shape has changed.)
Here is another screenshort when setting lighter weight (everything goes into italic again):
Oh, by the way, may I ask what's the meaning of salt or ss01 from here? #468 (comment) (I'm a big fan of this italic font version)
Hi, sorry for the delay in getting back to you. Finally had a chance to take a look at the files you sent over and, honestly, I don't see anything wrong with them.
I suspect that the issue might end up being something related to font conflicts in your font cache. I'd suggest removing all Cascadia Code fonts from your system, restarting, then reinstalling. Also, potentially clear the font cache. Sorry for the trouble!
I am seeing similar behavior with the latest release. If I set editor.fontWeight to "300", then everything is in italics. Is that what your PR is supposed to fix, Aaron (@aaronbell)? And thank you for your efforts!
Plot twist: Setting the font weight to anything other than 300 works fine. It's only 300 that makes everything italic.
I have tried it again Aaron (@aaronbell) , it seems that it works on my windows machine, but failed in Mac machine, I will try to clear font cache in mac(If there is a cache) when I got it
After tried to clear cache, the problem still exists too.
Plot twist: Setting the font weight to anything other than 300 works fine. It's only 300 that makes everything italic.
Out of interest, can you provide a bit more information about the system / VS Code version that you're using? I feel like this is likely a platform-specific issue but want to make sure.
Good news: This issue is isolated to Big Sur, it seems
Bad news: It is definitely something in the font because JetBrains Mono does not have the same problem
Good news: I have identified what is causing the issue and can fix it
Bad news: There appears to be a secondary issue that JetBrains Mono also suffers from wherein any weight value less than 400 becomes the lowest possible value (100 for JetBrains, 200 for Cascadia).
Oh, by the way , I found that SemiLight weight value in your pr is 350, but I have tried to set weight to 350 in vscode, but vscode is still using Regular weight rather than SemiLight, I don't know if it's the vscode's issue.
After some experimentation, I've found that In Vscode font-weight anything from 250 to 349 defaults to all-italic, including the whole number weight 300
I'm using variable TTF fonts on Mac OS Big Sur (11.5.2)
Activity
aaronbell commentedon Jun 7, 2021
Ok, two things.
One is that you should use the PR that I submitted last week as that has necessary improvements to the name table (it should be pushed to main this week).
Two, it appears you’re trying to use the Variable font version of the fonts. So either you will need to set the font weight in VSCode to a lighter weight (say, 300), or switch to the stat instances (which the name table fix should help with).
WindSoilder commentedon Jun 8, 2021
Hi, thanks for your quickly reply :-)
But sorry it seems this doesn't working for me.
I have installed from this source. (I believe the code lays here: https://github.com/aaronbell/cascadia-code/tree/work)
Here is the screenshort when no setting lighter weight:

Here you can see that I'm using the source code from your PR (the italic font shape has changed.)
Here is another screenshort when setting lighter weight (everything goes into italic again):

Oh, by the way, may I ask what's the meaning of
saltorss01from here? #468 (comment) (I'm a big fan of this italic font version)aaronbell commentedon Jun 8, 2021
Can you zip up all of the fonts that you’re generating And attach them here so I can take a look at what might be going on?
As for
salt/ss01, these are code functions in the font. See microsoft/vscode#80577 for how to implement these in VS Code.WindSoilder commentedon Jun 8, 2021
Sure, here is the file.
ttf.tar.gz
aaronbell commentedon Jun 16, 2021
Hi, sorry for the delay in getting back to you. Finally had a chance to take a look at the files you sent over and, honestly, I don't see anything wrong with them.
I suspect that the issue might end up being something related to font conflicts in your font cache. I'd suggest removing all Cascadia Code fonts from your system, restarting, then reinstalling. Also, potentially clear the font cache. Sorry for the trouble!
spaceaardvark commentedon Jun 16, 2021
I am seeing similar behavior with the latest release. If I set
editor.fontWeightto"300", then everything is in italics. Is that what your PR is supposed to fix, Aaron (@aaronbell)? And thank you for your efforts!Plot twist: Setting the font weight to anything other than 300 works fine. It's only 300 that makes everything italic.
WindSoilder commentedon Jun 16, 2021
Space Aardvark (@spaceaardvark) Hi, would you please try to use the ttf I upload from here can solve your issue?
#500 (comment)
I have tried it again Aaron (@aaronbell) , it seems that it works on my windows machine, but failed in Mac machine,
I will try to clear font cache in mac(If there is a cache) when I got itAfter tried to clear cache, the problem still exists too.
Oh, I got the same behavior too.
spaceaardvark commentedon Jun 17, 2021
Wind (@WindSoilder) that doesn't fix the problem.
aaronbell commentedon Jul 13, 2021
Hi! Please try the new release and let me know if it resolves your issues. Thanks!
https://github.com/microsoft/cascadia-code/releases/tag/v2106.17
WindSoilder commentedon Jul 14, 2021
Yeah, I'm using Mac, I have tried both
otfandttf, it seems thatotfis ok, butttfdoesn't.aaronbell commentedon Jul 14, 2021
Out of interest, can you provide a bit more information about the system / VS Code version that you're using? I feel like this is likely a platform-specific issue but want to make sure.
WindSoilder commentedon Jul 14, 2021
System version:
macOS Big Sur11.4Vscode about information:
aaronbell commentedon Jul 14, 2021
hmmmm. For fun, what happens if you set the font weight to 301.
aaronbell commentedon Jul 14, 2021
Another thing I'd be interested for you to test out. Can you visit this site: https://vscode-web-test-playground.azurewebsites.net/ (ideally in Chrome)
Click the triple lines in the upper left
File > Preferences > Settingsand then enter in the code settings:Does the issue repro there as well?
WindSoilder commentedon Jul 14, 2021
Every is still italic.
Yeah, I can reproduct it. (In chrome)
aaronbell commentedon Jul 15, 2021
Good news bad news time!
Good news: This issue is isolated to Big Sur, it seems
Bad news: It is definitely something in the font because JetBrains Mono does not have the same problem
Good news: I have identified what is causing the issue and can fix it
Bad news: There appears to be a secondary issue that JetBrains Mono also suffers from wherein any weight value less than 400 becomes the lowest possible value (100 for JetBrains, 200 for Cascadia).
I will need to investigate further tomorrow.
s1eke commentedon Jul 15, 2021
Same problem on win11

System Build:22000.65
VSCode Version:1.58.1
Cascadia Version:2106.17
WindSoilder commentedon Jul 16, 2021
Thanks !.! I have checked the new build ttf in your pr, and it works!
WindSoilder commentedon Jul 16, 2021
Oh, by the way , I found that
SemiLightweight value in your pr is350, but I have tried to set weight to350in vscode, but vscode is still usingRegularweight rather thanSemiLight, I don't know if it's the vscode's issue.aaronbell commentedon Jul 16, 2021
See microsoft/vscode#128097
:/
avarayr commentedon Aug 16, 2021
After some experimentation, I've found that In Vscode font-weight anything from 250 to 349 defaults to all-italic, including the whole number weight 300
I'm using variable TTF fonts on Mac OS Big Sur (11.5.2)
July-August 2021 Fixes (#538)