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

How to enable both curisve and italics not just one or the other #630

Open TyCmd opened 2 years ago

TyCmd commented 2 years ago

Cascadia family version 2111.01

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s) .ttf (variable)

Platform Windows 10

Other Software None

Visual Studio Code: Version - 1.66.2

What happened?

Cascadia Code only lets you pick either cursive or italics but not both. For example I want parameters in italics but want keyword for const in cursive.

The documentation isn't clear or if its possible or not.

What I've tried:

I have tried different calt and ss$num but couldn't get it to what I wanted.

Here's my vscode config for the font setup:

    "editor.fontLigatures": "'calt', 'ss01, ss19'", //If you want to add cursive add calt and ss01 - ss19 changes the 0
    "editor.fontSize": 14,
    "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": [
            "comment",
            "entity.name.method",
            "entity.other.attribute-name",
            "keyword.control.conditional",
            "keyword.control.flow",
            "keyword.control.loop",
            "keyword.control.import",
            "keyword.control.export",
            "keyword.control.default",
            "keyword.control.from",
            "keyword.control.switch",
            "keyword.operator.expression.delete",
            "keyword.operator.expression.in",
            "keyword.operator.expression.of",
            "keyword.operator.new",
            "keyword.operator.sizeof",
            "keyword.operator.logical.python",
            "storage"
          ],
          "settings": {
            "fontStyle": "italic"
          }
        },
      ]
    },
    "editor.fontWeight": "350",