Nerd Fonts: Enhance Your Terminal with Iconic Glyphs and Patched Fonts

Nerd Fonts: Enhance Your Terminal with Iconic Glyphs and Patched Fonts

Summary

Nerd Fonts is an ambitious project that patches popular developer-oriented fonts with a vast collection of iconic glyphs, including sets like Font Awesome, Material Design Icons, and Octicons. This allows developers to enjoy a richer visual experience in their terminals and code editors, making it easier to display various symbols and icons. With over 67 pre-patched font families and a powerful font patcher, it offers extensive customization for any coding environment.

Repository Info

Updated on March 3, 2026
View on GitHub

Introduction

Nerd Fonts is an iconic font aggregator, collection, and patcher designed to enhance the visual experience for developers. It takes popular programming fonts and patches them with a high number of extra glyphs, or icons, from various iconic font sets. This project integrates over 3,600 icons from collections like Font Awesome, Material Design Icons, Octicons, Devicons, and Powerline with Extra Symbols, directly into your favorite coding fonts.

With over 67 pre-patched font families available, including popular choices like Hack, Source Code Pro, Fira Code, and JetBrains Mono, Nerd Fonts provides a comprehensive solution for displaying a wide array of symbols in your terminal, text editor, and IDE. Beyond the pre-patched options, it also offers a powerful font-patcher script, allowing users to patch their own fonts with custom glyph sets, ensuring maximum flexibility and personalization.

Installation

Installing Nerd Fonts can be done through several convenient methods, depending on your operating system and preference. After downloading, remember to install the font files (.ttf or .otf) on your system.

  • Release Archive Download: The most straightforward way to get a complete font family package (including bold, italic, etc.) is by downloading the archives from the latest releases. You can also find a nice overview on the Nerd Fonts website.
    curl -OL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
    
  • Homebrew Fonts (macOS): For macOS users, Nerd Fonts are available via Homebrew Cask.
    brew install font-hack-nerd-font
    
  • Chocolatey or Scoop (Windows): Windows users can install fonts using Chocolatey or Scoop.
    choco install nerd-fonts-hack
    # or for Scoop
    scoop bucket add nerd-fonts
    scoop install Hack-NF
    
  • Ad Hoc Curl Download: If you prefer to download a single font file directly, you can use curl.
    # For Linux
    mkdir -p ~/.local/share/fonts
    cd ~/.local/share/fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf
    
    # For macOS
    cd ~/Library/Fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf
    
  • Patch Your Own Font: For ultimate customization, use the provided Python script to patch any font with the desired glyphs. This requires Fontforge, Python 3, python-fontforge, and argparse.
    fontforge -script font-patcher PATH_TO_FONT
    

Examples

The font-patcher script is a powerful tool for customizing your fonts. Here are some examples of how to use it:

  • Basic Patching: Patch a font with default glyph sets.
    ./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf
    
  • Monospaced and Quiet Output: Create a monospaced font with minimal output.
    ./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf --mono --quiet
    
  • Adding Specific Glyph Sets: Include specific iconic font sets like Font Awesome, Octicons, and Pomicons.
    ./font-patcher Inconsolata.otf --fontawesome --octicons --pomicons
    
  • Using Docker for Patching: Patch fonts within a Docker container, useful for isolated environments.
    docker run --rm -v ~/myfont/patchme:/in:Z -v ~/myfont/patched:/out:Z nerdfonts/patcher --fontawesome
    
    For most cases, the --complete option is recommended to include all available glyphs.

Why Use Nerd Fonts?

Nerd Fonts significantly enhances the developer experience by providing a rich set of iconic glyphs directly within your chosen programming fonts. This means you can display symbols for file types, version control statuses, powerline segments, and various other development-related icons directly in your terminal, code editor, or IDE.

The benefits include:

  • Enhanced Visuals: Makes your terminal and code editor more aesthetically pleasing and informative.
  • Improved Productivity: Quickly identify file types, branches, and other contextual information at a glance.
  • Extensive Customization: Choose from a wide range of pre-patched fonts or patch your own to perfectly match your setup.
  • Broad Compatibility: Integrates popular icon sets like Font Awesome, Material Design Icons, and Octicons, ensuring support for most common development tools and frameworks.
  • Community Driven: An active project with continuous updates and a supportive community.

Links