Coder Social home page Coder Social logo

delugia-code's Introduction

delugia image

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 is now 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 font versions are generated from Cascadia Code:

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

And the following two faces are generated from Cascadia Mono and don't have ligatures:

  • Delugia Mono Powerline Basic powerline glyphs, monospaced font
  • Delugia Mono Complete All Nerd Fonts glyphs, monospaced font

All of these are available in light, regular, and bold weights. Complemented by matching italic fonts.

How is Delugia special?

Compared with other patched versions of Cascadia you will find

  • Added symbol ⚑ (0u26A1) used with some popular Powerline setups (for not 'Complete')

How to use

You can download the patched fonts 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 *. So if, for example, you want to use it in Windows Terminal you should add the lines

                "font":
                {
                    "face": "Delugia"
                }

to the corresponding profiles in your settings.json.

Installation with Chocolatey

You can install your preferred version, or versions, of Delugia using the standard Chocolatey incantations.

  • choco install nerd-fonts-delugiamono-powerline
  • choco install nerd-fonts-delugiabook
  • choco install nerd-fonts-delugiapowerline
  • choco install nerd-fonts-delugiacomplete
  • choco install nerd-fonts-delugiamono-complete

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. One or more of
    • sudo scoop install Delugia-Nerd-Font
    • sudo scoop install Delugia-Nerd-Font-Complete
    • sudo scoop install Delugia-Mono-Nerd-Font
    • sudo scoop install Delugia-Mono-Nerd-Font-Complete
    • sudo scoop install Delugia-Nerd-Font-Book

Example for Delugia on the command line

Delugia Powerline

Help!

I know basically nothing about patching fonts so all contributions are πŸ¦Έβ€ welcome.

Note

The naming changed a bit when we added the light and bold fonts. To reduce the font name length the 'Nerd Font' has been dropped out of the (file) names. The actual naming scheme changed to accommodate the new fonts and for your convenience we pack fonts that one particular user might want to use together in a zip archive.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.