monolisa-nerdfont-patch/README.md

80 lines
2 KiB
Markdown
Raw Normal View History

2021-11-09 10:28:41 -06:00
# MonoLisa NF
2021-11-09 12:02:47 -06:00
2021-11-09 13:22:57 -06:00
*Most* Batteries inlcuded repo to patch MonoLisa with Nerd Fonts glyphs
2021-11-09 12:02:47 -06:00
2022-08-12 13:37:15 -05:00
tested w/ MonoLisa v1.808
2022-09-05 18:40:52 -05:00
<p align="center">
<img src="./assets/help.svg" width=400>
</p>
2021-11-09 12:02:47 -06:00
## Before You Begin
First you will need to install `fontforge`
There are a number of caveats to invoking the `font-patcher` script.
Some of which are explained by [nerd fonts](https://github.com/ryanoasis/nerd-fonts#font-patcher).
2022-08-12 13:37:15 -05:00
On Arch:
```bash
sudo pacman -S fontforge
```
You can also download the version for your system from the releases in the fontforge [repo](https://github.com/fontforge/fontforge).
2021-11-09 12:02:47 -06:00
## Downloading MonoLisa
Once you have acquired MonoLisa, follow the link in your email to download it.
2022-08-12 13:37:15 -05:00
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.
```bash
MonoLisa
├── otf
├── ttf
├── woff
└── woff2
```
2021-11-09 12:02:47 -06:00
## Patching your font
Once you have downloaded MonoLisa and `fontforge`
2022-08-12 13:37:15 -05:00
you can easily apply the nerd font patches with `make`.
To patch all font types use the default `patch` rule.
```bash
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.
2021-11-09 12:02:47 -06:00
```bash
2022-08-12 13:37:15 -05:00
ARGS="-c -w" make patch
2021-11-09 13:22:57 -06:00
```
You can find your patched fonts in the `patched/` directory
2022-08-12 13:37:15 -05:00
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:
```bash
make update-fonts
```
You can verify the fonts have been added with `make check`.
2022-03-02 13:35:36 -06:00
## Changing the Batteries
2022-08-12 13:37:15 -05:00
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.
2022-03-02 13:35:36 -06:00
2021-11-09 13:22:57 -06:00
## Special Thanks
2022-03-02 13:35:36 -06:00
- [MonoLisa](https://www.monolisa.dev)
- [Nerd Fonts](https://www.nerdfonts.com)