Skip to content

rfvgyhn/docker-nerd-font-patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nerd-font-patcher

Run nerd font patcher via container

Usage

  1. Create an output folder called output.
  2. Create and run the one time use container and get your new font from the output directory.

You may pass in font-patcher arguments at the end of the docker command.

Bash

Single Font:

docker run --rm -v $(pwd)/your-font.ttf:/input -v $(pwd)/output:/output --user $(id -u) rfvgyhn/nerd-font-patcher --complete --mono --adjust-line-height --careful -ext ttf

Batch Fonts:

for f in "$FONTS_DIR"/*.ttf; do
    [ -e "$f" ] || continue
    docker run --rm -v "$f":/input -v $(pwd)/output:/output --user $(id -u) rfvgyhn/nerd-font-patcher --complete --mono --adjust-line-height --careful -ext "${f##*.}"
done

Powershell

docker run --rm -v "$($pwd.Path -replace '^|\\+','/' -replace ':')/your-font.ttf:/input" -v "$($pwd.Path -replace '^|\\+','/' -replace ':')/output:/output" rfvgyhn/nerd-font-patcher --complete --mono --adjust-line-height --careful -ext ttf

Volumes

  • /input The font to be patched
  • /output Resulting font directory