ofolis / consolig

Consolas with custom programming ligatures
SIL Open Font License 1.1
45 stars 2 forks source link

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

  1. Copy your Consolas font files into the Consolig /input directory. On Windows, your Consolas files are located in /Windows/Fonts on your OS drive. The valid filenames are:
    • consola.ttf - Regular
    • consolab.ttf - Bold
    • consolai.ttf - Italic
    • consolaz.ttf - Bold Italic
  2. Make sure that you have Python 3 with PIP installed.
  3. Install the required Python libraries.
    pip install fontTools
  4. Execute the build script. python build.py
  5. If everything goes well, you should now have Consolig font files in your /build directory.

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.

Credits