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.11k stars 796 forks source link

font italic not working in Visual Studio Code with Cascadia Code font #688

Closed ullaskunder3 closed 1 year ago

ullaskunder3 commented 1 year ago

Cascadia family version

CascadiaCode-2111.01

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

.ttf (variable), .ttf (static)

Platform

Fedora Linux 38 (64)

Other Software

Visual studio code 1.79.0

What happened?

Screenshot from 2023-06-09 12-37-18

ullaskunder3 commented 1 year ago

OK, so have to manually configure it right ?

I tried something and its working,

  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": [
          "comment",
          "keyword",
          "storage.modifier",
          "storage.type.class.js",
          "storage.type.js",
          "variable.language.this.js",
          "variable.parameter.js",
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          "keyword.control.conditional",
          "keyword.operator"
        ],
        "settings": {
          "fontStyle": ""
        }
      }
    ]
  },