chunliu / delugia-code

Can we add Nerd Fonts to Cascadia Code Font using a GitHub Action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cascadia Code + Nerd Fonts

Can we add Nerd Fonts to the Cascadia Code font using a GitHub Action?

Inspired by Scott Hanselman and Alistair Young.

The answer, it turns out, is yes.

I wrote a blog post with more details about how this works.

Actions Status

⚠ Cascadia now bundles Powerline symbols so you almost definitely don't need to use this. Just grab the PL version from the latest Cascadia release.

⚠ Cascadia is now also part of Nerd Fonts' prepatched font repository. You can grab it there, and it is almost what you find as Delugia font here. There are some small differences, see below.

What is Nerd Fonts anyway?

Nerd Fonts takes popular programming fonts and adds a bunch of Glyphs. They include all the absolutely indispensable symbols all nerds need in their favorite fonts. Go to their repository or have a look at the overview.

Typically they come in two flavours:

  • Powerline (adds the symbols needed to have a basic Powerline and some more.)
  • Complete (adds even more Powerline symbols and all other symbols Nerd Fonts has collected.)

Powerline includes these symbols:

Complete includes these symbols additionally:

Which font faces are available

These three faces are generated:

  • Delugia Nerd Font Powerline Basic glyphs, monospaced font
  • Delugia Nerd Font Complete All Nerd Fonts glyphs, monospaced font
  • Delugia Nerd Font Book All Nerd Fonts glyphs, propotional font (not recommended for coding/console)

How is Delugia special?

Compared with other patched versions of Cascadia you will find

  • Backtick char ` working in ligature enabled environments
  • Added symbols (0u2262), (0u2263), and (0u276F) used with some popular Powerline setups

How to use

You can download the patched font from the Releases page of this repo and install them as you would any other font. Once installed the font can be referenced as Delugia Nerd Font. So if, for example, you want to use it in Windows Terminal you should add this line to your profiles.json

"fontFace" : "Delugia Nerd Font",

Installation with scoop.sh

You can use scoop.sh to install and update the font. At first install scoop and add extra bucket for nerd-fonts:

  1. iwr -useb get.scoop.sh | iex
  2. scoop bucket add nerd-fonts
  3. scoop install sudo
  4. sudo scoop install Delugia-Nerd-Font or sudo scoop install Delugia-Nerd-Font-Complete

Help!

I know basically nothing about patching fonts so all contributions are 🦸‍ welcome.

About

Can we add Nerd Fonts to Cascadia Code Font using a GitHub Action


Languages

Language:Shell 69.5%Language:Python 30.5%