This repo contains a Fontforge python script that you can use to add the FiraCode ligatures to any font, as well as submodules for some popular progra

EzequielRamis / liga Public

submited by
Style Pass
2022-01-15 15:00:13

This repo contains a Fontforge python script that you can use to add the FiraCode ligatures to any font, as well as submodules for some popular programming fonts and another script for ligating all of them at once.

Script: This script requires FontForge python bindings. For Debian/Ubuntu they are available in python-fontforge package. For Arch, OpenSUSE and NixOS, they are included in the fontforge package. For macOS, they are available via brew (brew install fontforge).

Edit config.py to disable ligatures you don't want, change glyphs scale factor, and/or enable any (non-ligature) characters you want from FiraCode in addition to the ligatures.

The font weight will be inherited from the original file; the font name will be replaced with whatever you specified in --output-name. You can also use --prefix instead, in which case the original name will be preserved and whatever you put in --prefix will be prepended to it.

ligate.py supports some additional command line options to, for example, change which font ligatures are copied from or enable copying of individual character glyphs; run python ligate.py --help to list them.

Leave a Comment
Related Posts