Dockerfile to build a Nerd Fonts Patcher image for the Docker opensource container platform.
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 โถ and Octicons โถ.
Just copy all your fonts you want to patch into $(pwd)/in
directory and execute the following command:
docker run --rm \
--volume $(pwd)/in:/nerd-fonts/in:ro \
--volume $(pwd)/out:/nerd-fonts/out \
--user $(id -u):$(id -g) \
cdalvaro/nerd-fonts-patcher:2.1.0 \
--quiet --no-progressbars \
--mono --adjust-line-height --complete --careful
The container will patch all files with extensions .otf
and .ttf
inside $(pwd)/in
and
leave them into $(pwd)/out
.
More information is available at the official documentation site.
This image can be downloaded from Dockerhub
docker pull cdalvaro/nerd-fonts-patcher:latest
or from Quay.io too.
docker pull quay.io/cdalvaro/nerd-fonts-patcher