Open-source monospace font for code listings, originally by @raphlinus
Inconsolata includes ligatures for a few JavaScript operators:
- "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;
(note for the purposes of this repository, Ligconsolata has been disabled)
Fonts are built automatically by GitHub Actions - take a look in the "Actions" tab for the latest build.
If you particularly want to build fonts manually on your own computer, you will need to install the yq
utility. On OS X with Homebrew, type brew install yq
; on Linux, try snap install yq
; if all else fails, try the instructions on the linked page.
Then:
make build
will produce font files.make test
will run FontBakery's quality assurance tests.make proof
will generate HTML proof files.
Note – if you update the source files, they must be prepped before the build will accept them:
To prep the source we must load sources/Inconsolata-source.glyphs in Glyphs and do the following:
- Run the decompose-transformed-components.py script
- Run the gen_instances.py script
- Run the inco_fix.py script
- Save the file in the sources directory with the filename "Inconsolata.glyphs"
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
Upgrade to 2-axis variable font family, with widths from 50 to 200, and weights from 200 to 900.
- Removed ligatures for
fi
andfl
. - 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
In addition, we want to export a subset not including Vietnamese script coverage, to avoid over-large line spacing on older applications (such as terminals and text editors) that don't understand the "use typo metrics" flag (see googlefonts#35).
The repository also contains some Rust code to manipulate Glyphs format masters, in the glyphstool
subdirectory. This was used to apply global transforms (mostly as a starting point for the width work). Perhaps the most valuable aspect is that it contains a fairly complete set of line and box drawing primitives, inspired by [Source Code Pro] but with actually variable weight and width. It's not particularly polished or well documented, but is provided for completeness, and it's possible that it could be adapted to future tools that work with font data in the Glyphs format. The code is licensed under Apache 2.0 or MIT, in keeping with the Rust tradition.
Copyright 2006 The Inconsolata Project Authors