Open-source monospace font for code listings, originally by @raphlinus
Inconsolata includes ligatures for a few JavaScript operators:
They are available in two families.
- "Inconsolata" exposes the ligatures as
dlig. These are disabled by default, and probably won't show up in your editor. You can enable them in CSS with this rule:font-variant-ligatures: discretionary-ligatures;
- "Ligconsolata" exposes the ligatures as
liga. These are enabled by default. This is the family you should use in your text editor.
- Removed ligatures for
fiandfl. - Operator ligatures moved to
dlig. - New variant "Ligconsolata" introduced, which exposes operator ligatures as
liga.
March 2018 glyph set expansion was completed by @appsforartists, which included:
- Glyph Set expanded to include ligatures for ===, !==, =>, <=, >=, ->, <-
August 2016 glyph set expansion was completed by Alexei Vanyashin ( Cyreal ), which included:
- Glyph Set expanded to GF Latin Pro
- Additional glyphs ⊕↑↗→↘↓↙←↖↔↕⇧⇨⇩⇦⬆⮕⬇⬅●○◆◇☹☺☻♠♣♥♦✓✔✕✗✘␣⎋⌂⇪⌧⌫⌦⌥⌘⏎�
- Minor design improvements (trademark corner spurs)
Further reading: Inconsolata expansion project thread on Google Fonts Discussions
- GF Latin Pro
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
Inconsolata source files are available in .glyphs format located in the /sources directory.
- Follow the "Creating the ligature" section of the Glyphs ligatures tutorial.
- Name your new glyph with the suffix
.dlig, for instancebar_greater.dlig. - Open the Font Info panel.
- Switch to the Features tab.
- Click dlig in the sidebar.
- Click the Update button at the bottom of the panel.
- Switch to the Instances tab.
- Update the Rename Glyphs value for "Ligconsolata Regular" to include a new line for your new glyph, for instance:
bar_greater.dlig=bar_greater.liga - Update the Rename Glyphs value for "Ligconsolata Bold".
- Export the font, as explained below.
-
TTF and OTF files should be exported into
/fonts/ttfand/fonts/otffolders. -
TTFsshould be generated from Glyphs App withAutohintoption checked. At the moment there is no custom build script required to produce font files, since default TTFautohinting options suffice.
OTFsshould be generated with these options:- Remove Overlap
- Autohint
- Save as TTF
- Export destination: $REPO_PATH/fonts/otf
Copyright 2006 The Inconsolata Project Authors