Sign inSign up

nerdfonts/patcher

By nerdfonts

Updated 25 days ago

Patches developer targeted fonts with a high number of glyphs (icons).

Image
10

10K+

nerdfonts/patcher repository overview

About

Nerd Fonts Logo

Iconic font aggregator, collection, and patcher

Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular 'iconic fonts' such as Font Awesome ➶, Devicons ➶, Octicons ➶, and others.

Visit the website, project repository or wiki for more information.

Nerd Fonts Patcher

Use the provided Docker image to patch your own font or to generate over 1.4 million unique combinations/variations (more details).

You can even specify a custom symbol font with the --custom option to include even more glyphs.

Usage

  1. Put your font(s) in a folder
  2. Create an output folder for the patched font files
  3. Spin up a container: docker run -v /path/to/fonts:/in -v /path/for/output:/out nerdfonts/patcher [OPTIONS]

Options

OptionDescription
-h, --helpShow help message and exit
-v, --versionShow program's version number and exit
-s, --mono, --use-single-width-glyphsWhether to generate the glyphs as single-width not double-width (default is double-width)
-l, --adjust-line-heightWhether to adjust line heights (attempt to center powerline separators more evenly)
-q, --quiet, --shutupDo not generate verbose output
-w, --windowsLimit the internal font name to 31 characters (for Windows compatibility)
-c, --completeAdd all available Glyphs
--fontawesomeAdd Font Awesome Glyphs
--fontawesomeextensionAdd Font Awesome Extension Glyphs
--fontlinux, --fontlogosAdd Font Linux and other open source Glyphs
--octiconsAdd Octicons Glyphs
--powersymbolsAdd IEC Power Symbols
--pomiconsAdd Pomicon Glyphs
--powerlineAdd Powerline Glyphs
--powerlineextraAdd Powerline Glyphs
--material, --materialdesignicons, --mdiAdd Material Design Icons
--weather, --weathericonsAdd Weather Icons
--custom [CUSTOM]Specify a custom symbol font. All new glyphs will be copied, with no scaling applied.
--postprocess [POSTPROCESS]Specify a Script for Post Processing
--removeligs, --removeligaturesRemoves ligatures specified in JSON configuration file
--configfile [CONFIGFILE]Specify a file path for JSON configuration file (see sample: src/config.sample.json)
--progressbarsShow percentage completion progress bars per Glyph Set
--no-progressbarsDon't show percentage completion progress bars per Glyph Set
--carefulDo not overwrite existing glyphs if detected
-ext [EXTENSION], --extension [EXTENSION]Change font file type to create (e.g., ttf, otf)

Examples

docker run --rm -v ~/myfont/patchme:/in -v ~/myfont/patched:/out nerdfonts/patcher
docker run --rm -v ~/Desktop/myfont/patchme:/in -v ~/Desktop/myfont/patched:/out nerdfonts/patcher --fontawesome

Tag summary

Content type

Image

Digest

sha256:5afde49c2

Size

42.1 MB

Last updated

25 days ago

docker pull nerdfonts/patcher