Skip to content

TheCaffeinatedJourney/cascadia-code-patched

 
 

Repository files navigation

Cascadia Code Patched

This is a fork of the official Cascadia Code font. It replaces the greater-than less-than ligature (<>) with the not equal () ligature.

The fonts are available for download from /build/ttf/.


Cascadia Code

About Cascadia Code

Cascadia is a fun new coding font that comes bundled with Windows Terminal, and is now the default font in Visual Studio as well.

Font Variants

  • Cascadia Code: standard version of Cascadia
  • Cascadia Mono: a version of Cascadia that doesn't have ligatures
  • Cascadia (Code|Mono) PL: a version of Cascadia that has embedded Powerline symbols
  • Cascadia (Code|Mono) NF: a version of Cascadia that has Nerd Font symbols

For the italic, there is a standard italic and a cursive variant accessible via ss01 (see below).

Font features

Coding Ligatures Note: <> is replaced with in this patched version.

Arrow Support

Stylistic Sets

Enabling stylistic sets will vary between applications. For example, in VS Code, you can enable stylistic sets (and other OpenType features) via settings.json:

"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss19', 'ss20'"

To enable the Cursive form of the italic, here's the code you should use:

"editor.fontLigatures": "'calt', 'ss01'",

If you're using an environment that does not support the ss01 OT feature, one option to consider is opentype-feature-freezer.

Character Sets

Cascadia Code Cascadia Code Italic Symbols for Legacy Computing and other block elements

Installation

Note: If you have previously installed a version of Cascadia Code, please uninstall the previous version prior to installing a new version. Not doing so can result in improper rendering.

The patched fonts can be downloaded from: /build/ttf/.


Building the Fonts Yourself

To build the fonts yourself, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/TheCaffeinatedJourney/cascadia-code-patched.git
    cd cascadia-code-patched
  2. Set Up a Virtual Environment:
    python3 -m venv .venv
    source .venv/bin/activate
  3. Install Dependencies: Use the requirements.txt file to install all necessary dependencies:
    pip install -r requirements.txt
  4. Buid the fonts: Run the build.py script to generate the fonts:
    python build.py
  5. Locate the fonts: The fonts will be located in the /build/ttf/ directory.

About

A patched version of Microsoft's Cascadia Code font, with <> mapping to the ≠ Unicode character.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%