Skip to content
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

VSCode does not utilize italic font, defaults to artificially slanted #485

Closed
derekschinke opened this issue May 29, 2021 · 7 comments
Closed

Comments

@derekschinke
Copy link

Cascadia family version

2105.24

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

.ttf (static)

Platform

macOS 11.4

Other Software

Visual Studio Code 1.56.2

What happened?

Italic font does not appear in VSCode themes that use italics.

Settings:
Screen Shot 2021-05-29 at 19 42 12

Result:
Screen Shot 2021-05-29 at 19 42 44

Italics are rendered as Cascadia Code, but slanted artificially by VSCode, instead of using the bespoke Cascadia Code Italic.

@sonulohani
Copy link

sonulohani commented May 30, 2021

Even I am also facing the same. Seems like the problem is with the font naming. For now you can use the fonts inside ttf folder(there are 8 fonts) instead of ttf/static. That works fine for me. After installing the fonts just use "cascadia code" in vscode/font family, the italics will also work fine. You dont need to specify "cascadia code italics" explicitly

@liuzhijun-source
Copy link

Maybe you can install the Windows Terminal in Microsoft store. It comes with a Cascadia code and others, and the font will stay up to date. Then set Font Family to Cascadia Code and no Cascadia Code Italic

@derekschinke
Copy link
Author

@Someone-Of-Liu

Platform

macOS 11.4

No Microsoft Store on macOS 😅

@liuzhijun-source
Copy link

liuzhijun-source commented May 30, 2021 via email

@yume-chan
Copy link

I think you should swap the order, the font renderer uses the first font that contains the character.

@derekschinke
Copy link
Author

Unfortunately, that makes everything italic:
Screen Shot 2021-05-30 at 21 58 42

@aaronbell
Copy link
Collaborator

There's been an issue with the static instance naming (see #481). I recommend using the variable font version of the font for the time being rather than the static installs until a new release is pushed. At that point, you will only need to state "Cascadia Code" to get both the upright and italic forms.

As this appears to be a dupe of #481, I will close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants