mirror of
https://github.com/ToxicFrog/Ligaturizer.git
synced 2024-09-11 18:07:00 +03:00
Programming Fonts with Ligatures added (& a script to add them to other fonts)
coding-fontsfontfont-ligaturesligaturesmonospace-fontprogramming-fontprogramming-fontsstarred-repostarred-toxicfrog-repo
input-fonts | ||
output-fonts | ||
.gitignore | ||
FiraCode-Medium.otf | ||
img.png | ||
ligaturize.py | ||
README.md |
Ligaturizer
Add ligatures to any coding font!
What this repo contains:
- Programming fonts with ligatures added (in
output-fonts/
), including:
- Anonymous Pro
- CamingoCode
- Cousine
- DejaVu Sans Mono
- Droid Sans Mono
- edlo
- Hack
- Inconsolata & Inconsolata-g
- IBM Plex Mono: Regular, Semibold
- Meslo (LGL, LGLDZ, LGM, LGMDZ, LGS, LGSDZ)
- Oxygen Mono
- Roboto Mono
- SF Mono: Regular, Semibold
- Ubuntu Mono
- A script ligaturize.py that adds the ligatures from Fira Code to a font without ligatures
Credit: This awesome script was written by IlyaSkriblovsky for adding ligatures to Deja Vu Sans Mono (dv-code-font). I've just made a few minor changes to generalize the script so that it works for any given font.
Requirements
Script: This script requires FontForge python bindings. For Debian/Ubuntu they are available in python-fontforge
package. For macOS,
they are available via brew (brew install fontforge
).
Using the Fonts: See the FiraCode README for a list of supported editors.
Using the Script
- Move/copy the font you want to ligaturize into
input-fonts/
- Run the script:
$ fontforge -lang=py ligaturize.py
- You'll be prompted for the name of the font, and the name for the generated font. Example:
❯ fontforge -lang=py ligaturize.py
...
Enter the source font filename (including extension): RobotoMono-Regular.ttf
Enter a name for your ligaturized font -- or press ENTER to use the same name: <PRESS ENTER>
...
Generated ligaturized font Roboto Mono L in ligaturized-fonts/RobotoMono.ttf
❯ fontforge -lang=py ligaturize.py
...
Enter the source font filename (including extension): RobotoMono-Regular.ttf
Enter a name for your ligaturized font -- or press ENTER to use the same name: RobotoMonoL
...
Generated ligaturized font Roboto Mono L in ligaturized-fonts/RobotoMonoL.ttf
If you don't provide a name for the new font, it will have the same name as the input font.
Misc.
For more awesome programming fonts with ligatures, check out: