microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.39k stars 803 forks source link

Setting editor.fontWeight to 300 in VSCode makes all text italic #531

Closed smlombardi closed 3 years ago

smlombardi commented 3 years ago

Cascadia family version

2106.17

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

.ttf (variable)

Platform

MacOS 11.4

Other Software

Visual Studio Code

What happened?

I used to use the static fonts but followed the suggestion in the ReadMe that the TTF has better hinting and should be used.

Checking in Font Book shows a lot of weights:

User-20210713_152615

I'd like to use a lighter weight in VS Code, but if I set it to 300, the font is all italic:

~LibraryApplication SupportCode - InsidersUsersettings json — ng-designsystem-20210713_152933

It seems to work as expected in Terminal where I can use a GUI to set the weight:

Profiles-20210713_153350

as you can see, it looks like Light here:

ttf — st016lo@US-ST016LO-MLT —  e-2106 17ttf — -zsh-20210713_153739

aaronbell commented 3 years ago

Hm. I'm not seeing that issue in VS Code myself. It may be caused by multiple font installs causing issues. I would suggest uninstalling all versions of the fonts, restarting, and reinstalling.

smlombardi commented 3 years ago

I did, more than once. If I install the static TTF or OTF fonts, then I can set the font to "Cascadia Code Light"

Settings — ng-designsystem-20210713_155731

aaronbell commented 3 years ago

Hm. I'm afraid I'm not sure what's going on for you! Given that you're on a mac, just go ahead and use the OTFs. :)

aaronbell commented 3 years ago

It looks like this is the same issue as #500, so I'll close this and continue discussion over there.

aaronbell commented 3 years ago

BTW, 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.

smlombardi commented 3 years ago

Mac OS 11.4

Version: 1.59.0-insider Commit: 807dfb817fef0d0c5729c1924bd4889b04fa405b Date: 2021-07-13T09:15:26.467Z Electron: 12.0.13 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Darwin x64 20.5.0