A Nerd Fonts Patcher helper to patch and ligaturize custom fonts.
Downloads the latest version of the Nerd Fonts Patcher and patch specified fonts.
Can add ligatures based on the ligatures implemented in Fira Code v3.1 OpenType fonts. For more information about why this version is used, see the following issue. This functionality is heavily based on the Ligaturizer project.
- Update available packages:
sudo apt-get update
- Install Python v3:
sudo apt install python3
- Install fontforge:
sudo apt-get install fontforge
- Install
fontforge
andconfigparser
python dependencies:sudo apt-get install python3-fontforge python-configparser
- Clone this repo
git clone https://github.com/lperezperez/font_patcher_helper.git cd font_patcher_helper
-
Run the script:
./font-patcher-helper.py [path]...
Patched fonts are generated in the
patched-fonts
folder with the same font file sub-path for directories.Only .otf and .ttf fonts will be patched.
-
If you want to ligaturize fonts, run the script:
./ligaturize-fonts.py [path]...
Ligaturized fonts are generated in the
ligaturized-fonts
folder with the same font file sub-path for directories.Only .otf and .ttf fonts will be ligaturized.
See the Changelog for more details.
Feel free to fork, submit pull requests, etc.
This repository follows the Contributors covenant code of conduct.
Under MIT license terms.