consolig
consolig copied to clipboard
Consolas with custom programming ligatures
Consolig
Consolig is a version of Consolas that supports ligatures. Unlike other efforts, all ligatures in Consolig were made by hand from the original Consolas glyphs (they are not just copied from another ligature font).
Because Consolas cannot be redistributed, this project provides the tools to append the ligature glyphs and features to your personal copy of Consolas, generating a copy of Consolig.
NOTE: Currently, all font styles use the same ligature glyphs. Making style-specific glyphs is on the roadmap.
How to build
- Copy your Consolas font files into the Consolig
/inputdirectory. On Windows, your Consolas files are located in/Windows/Fontson your OS drive. The valid filenames are:consola.ttf- Regularconsolab.ttf- Boldconsolai.ttf- Italicconsolaz.ttf- Bold Italic
- Make sure that you have Python 3 with PIP installed.
- I have verified with the Python 3.8 installation in the Windows Store.
- Install the required Python libraries.
pip install fontTools - Execute the build script.
python build.py - If everything goes well, you should now have Consolig font files in your
/builddirectory.
How to use
Check out the information about enabling ligatures provided by FiraCode here: https://github.com/tonsky/FiraCode/wiki#how-to-enable-ligatures I'll update this documentation soon with similar instructions, but for now, FiraCode's documentation will get you where you need to go (regarding the stylistic alternatives).
This version of Consolig is comparable to version 5.2 of FiraCode. Consolig now does everything FiraCode can do (including Powerline support), with the exception of their Console UI and Math features. However, that does mean that Consolig now has alternative glyph styles.
ss01adds a bottom serif to lowercase R and lowercase Fss02gives<=and>=an angled bottom bar (default is horizontal)ss03swaps the traditional Consolas ampersand for a programming alternatess04removes the middle bar from the traditional Consolas dollar signss05swaps the traditional Consolas "at symbol" for a version with a partial loopss06enables a thin backslash for escape charactersss07enables regexp matchingss08enables alternate double/triple equals with gaps (versus the triple bar)zeroenables a dotted zeroonumenables old-style numeric glyphs
Credits
- Glyph substitution logic was taken from FiraCode.