Adding programming ligatures from FiraCode to any font
Simply execute ligaturize.py
with a font file. This script is currently hardcoded to use ./ligature-source/firacode
as the source for ligatures.
python3 ligaturize.py ./sample/DejaVuSansMono.ttf
The resulting font will add 'Liga` as a suffix eg: ./sample/DejaVuSansMonoLiga.ttf
Optionally, you can provide an output file name as a second parameter if you wish however, this will not change the name of the resulting font:
python3 ligaturize.py ./sample/DejaVuSansMono.ttf ./sample/ModifiedDejaVuSansMono.ttf
This script requires FontForge python bindings. For Debian/Ubuntu they are available in python-fontforge
package.
- python3-fontforge | python-fontforge