↓ Skip to main content

Cascadia Code

·523 words·3 mins·
Table of Contents
One of the font, Cascadia Code, catches my eyes.

Today I’ve been reading an article: An analysis of 5 monospaced fonts with coding ligatures 1.

It is interesting. It compares 5 monospace fonts in term of: Coding Ligatures, X-height, Legibility and extra features.

One of the font, Cascadia Code, catches my eyes. And I’m going to share some tips on applying the extra features at Windows Terminal and my favorite Vim editor.

Cursive Style
#

Here’s the quick recap and comparison.

FontCoding LigaturesX-heightLegibilityExtra
Fira CodeWidest rangeRegularHigh/
Commit MonoBasic rangeRegularHighSmart kerning
CascadiaWide rangeRegularHighCursive style
Victor MonoWide rangeSlightly largerOK/
SF MonoWidest rangeSlightly smallerSome concerns/
RecursiveBasic rangeRegularSome concernsVariable cursive style

For more cursirve style settings, please refer to Adding free Cursive (Italic) font to visual studio code 2 and How to enable stylistic sets 3.

Windows Terminal
#

In Microsoft Windows Terminal, font features are profile appearance settings for toggle specific features—such as programming ligatures, slashed zeros, or stylistic character sets.

We can configure these either through the graphical settings UI or directly in settings.json file.

Method A:

  1. Open Windows Terminal and press ctrl + , to open Settings.

  2. Select a specific profile or choose Defaults.

  3. Go to the Appearance tab and expand the Font section.

  4. Scroll to Font Features to add or toggle OpenType tags (such as ss01 or calt).

Method B:

  1. Open Settings and click Open JSON file (or press ctrl + shift + ,)

  2. Inside profile’s "font" object, add a "features" dictionary mapping each 4-character OpenType tag to 1 (enabled) or 0 (disabled):

"profiles": {
  "defaults": {
     "font": {
        "face": "Cascadia Code",
        "size": 12,
        "features": {
           "ss01": 1,  // Enables cursive italics in Cascadia Code
           "zero": 1,  // Enables slashed zero (if supported by the font)
           "calt": 0   // Disables contextual alternates / programming ligatures
        }
     }
  }
}

Below is the screenshot showing cursive within a Terminal login session.

Windows Terminal

Common OpenType Features Tags
#

Feature TagNameCommon Effect in Terminal Fonts
caltContextual AlternatesControls most multi-character programming ligatures (e.g., =>, !=, ===). Set to 0 to turn ligatures off.
ligaStandard LigaturesControls standard character ligatures. Set to 0 alongside calt to ensure all ligatures are disabled.
zeroSlashed ZeroReplaces the standard 0 glyph with a slashed or dotted zero for better distinction from O.
ss01 – ss20Stylistic Sets 1–20Activates alternate character designs. For example, in Cascadia Code, ss01 turns standard italics into cursive script.
cv01 – cv99Character VariantsSwaps individual characters (like a single-story a or g, or a tailed l) in fonts like JetBrains Mono or Fira Code.

VIM Editor
#

Here’s the steps to customize vim to display all comments in italics.

  1. Add the highlight rule to .vimrc. Add the following line after colorscheme declaration.
.vimrc
highlight Comment cterm=italic gui=italic

Below is the screenshot showing cursive within a vim editor.

Vim editor

Links#

zd
Author
zd
cli-geek, strategist, architect

Related