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.64k stars 804 forks source link

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

Closed derekschinke closed 3 years ago

derekschinke commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@Someone-Of-Liu

Platform

macOS 11.4

No Microsoft Store on macOS 😅

liuzhijun-source commented 3 years ago

Sorry😂


发件人: Derek Schinke @.> 发送时间: Sunday, May 30, 2021 11:23:59 AM 收件人: microsoft/cascadia-code @.> 抄送: 刘志军 Liu Zhijun @.>; Mention @.> 主题: Re: [microsoft/cascadia-code] VSCode does not utilize italic font, defaults to artificially slanted (#485)

@Someone-Of-Liuhttps://github.com/Someone-Of-Liu

Platform

macOS 11.4

No Microsoft Store on macOS 😅

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/cascadia-code/issues/485#issuecomment-850933338, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQVFYA7UEKOKIOXXYURY6K3TQGVU7ANCNFSM45YYP7YA.

yume-chan commented 3 years ago

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

derekschinke commented 3 years ago

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

aaronbell commented 3 years ago

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.