Patch MonoLisa with Nerd Fonts
Find a file
2023-01-07 10:16:51 -06:00
assets docs: add svg for make help 2022-09-05 18:40:52 -05:00
bin chore: update NF batteries 2023-01-03 15:11:49 -06:00
MonoLisa add gitignore and needed subfolders 2021-11-09 11:51:56 -06:00
patched add gitignore and needed subfolders 2021-11-09 11:51:56 -06:00
src/glyphs update NF batteries 2022-11-30 13:03:20 -06:00
.flake8 feat: find is dead long live python 2022-12-11 17:36:50 -06:00
.gitignore add sourcing of .env 2022-12-13 00:27:51 -06:00
.pre-commit-config.yaml chore: switch to pre-commit 2023-01-07 10:16:51 -06:00
.task.mk update .task.mk 2022-10-13 10:41:38 -05:00
Makefile chore: switch to pre-commit 2023-01-07 10:16:51 -06:00
README.md chore: switch to pre-commit 2023-01-07 10:16:51 -06:00

MonoLisa NF

Most Batteries included repo to patch MonoLisa with Nerd Fonts glyphs

tested w/ MonoLisa v2.003

Dependencies

  • python
  • make
  • fontforge OR docker

There are some caveats to invoking the font-patcher script. Some of which are explained by nerd fonts. To use font-patcher with fontforge first ensure it is installed (or see below for docker approach).

On Arch:

sudo pacman -S fontforge

You can also download the version for your system from the releases in the fontforge repo.

If you prefer to use docker rather than install fontforge you can add ARGS='--docker' to calls to make patch.

Downloading MonoLisa

Once you have acquired MonoLisa, follow the link in your email to download it. Then extract the .zip file of the type you've downloaded into MonoLisa/.

The expected directory structure is below. You only need to download the font types you plan to use.

MonoLisa
├── otf
├── ttf
├── woff
└── woff2

Patching your font

Once you have downloaded MonoLisa and fontforge you can easily apply the nerd font patches with make.

To patch all font types use the default patch rule.

make

By default the complete (-c) flag is passed to the font-patcher script to include all icons/symbols. You can change this by specifying the ARGS at runtime.

ARGS="-c -w" make patch

See ./bin/patch-monolisa --help and ./bin/font-patcher --help for available ARGS.

You can find your patched fonts in the patched/ directory

If like me you want to place your patched fonts in a standard location on your Unix system you can move them to ~/.local/share/fonts/MonoLisa with the bin/update-fonts script.

Or for simplicity you can copy the fonts and update the cache with:

make update-fonts

You can verify the fonts have been added with make check.

Changing the Batteries

If I haven't committed to this repo in a while it's likely a good idea to run make update-src to update the fonts, icons and patcher script from nerd fonts.

Contributing

Before making changes to to any of the scripts in bin you should first install pre-commit. Followed by setting up the pre-commit hooks locally.

pipx install pre-commit
pre-commit install

Special Thanks