Inconsolata Font Mac Os X Download

Inconsolata

Open-source monospace font for code listings, originally past @raphlinus

Ligatures

Inconsolata includes ligatures for a few JavaScript operators:

Ligatures sample

They are available in two families.

  • "Inconsolata" exposes the ligatures every bit dlig. These are disabled past default, and probably won't testify up in your editor. You lot 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 yous should utilise in your text editor.

Note: the Ligconsolata variant has non yet been upgraded to version 3.000, every bit we're prioritizing the non-ligature variants.

Edifice the family

Family is congenital using Glyphs, fontmake and gftools post processing script. Tools are all python based.

To install all the Python tools into a virtualenv, do the following:

              python3 -1000 venv venv source venv/bin/activate pip install -r requirements.txt                          

To build the fonts nosotros must load sources/Inconsolata-vf.glyphs in Glyphs and do the post-obit:

  • Run the decompose-transformed-components.py script
  • Run the gen_instances.py script
  • Run the inco_fix.py script
  • Save the file back in the sources directory with the filename "prod.glyphs"

We can now run the build script in the terminal:

              cd sources # script needs to be run from sources dir sh build.sh                          

Fonts will take approximately 25 minutes to build.

Changelog v.iii.000

Upgrade to 2-axis variable font family, with widths from fifty to 200, and weights from 200 to 900.

Changelog v.two.013

  • Removed ligatures for fi and fl.
  • Operator ligatures moved to dlig.
  • New variant "Ligconsolata" introduced, which exposes operator ligatures as liga.

Changelog v.two.011

March 2018 glyph set expansion was completed past @appsforartists , which included:

  • Glyph Set expanded to include ligatures for ===, !==, =>, <=, >=, ->, <-

Changelog v.ii.001

August 2016 glyph prepare 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

Supported glyphs sets:

  • GF Latin Pro

Inconsolata Preview

License

This Font Software is licensed nether the SIL Open up Font License, Version 1.i. This license is copied below, and is also bachelor with a FAQ at: http://scripts.sil.org/OFL


Inconsolata Build Instructions

Inconsolata fonts tin be built using either export from Glyphs or using fontmake. The font files committed to this repo are done using fontmake.

Source Files

Inconsolata source files are bachelor in .glyphs format located in the /sources directory.

Adding ligatures

  1. Follow the "Creating the ligature" section of the Glyphs ligatures tutorial.
  2. Proper noun your new glyph with the suffix .dlig, for example bar_greater.dlig.
  3. Open the Font Info panel.
    1. Switch to the Features tab.
    2. Click dlig in the sidebar.
    3. Click the Update button at the lesser of the panel.
    4. Switch to the Instances tab.
    5. Update the Rename Glyphs value for "Ligconsolata Regular" to include a new line for your new glyph, for example:
                            bar_greater.dlig=bar_greater.liga                                          
    6. Update the Rename Glyphs value for "Ligconsolata Bold".
  4. Export the font, as explained below.

Exporting a variable font using fontmake

It's possible to export the project as a single variable font. Information technology's merely a flake tricky, because the font uses components with varying 2x2 components, triggering a bug which is present in both fontmake and Glyphs export. Thus, there'south an inco_fix.py script in the sources directory that detects this instance and decomposes just those components. Run that script earlier exporting. The script likewise decomposes corner components, which makes the resulting glyphs file suitable for fontmake export equally well (fontmake currently has no support for corner components).

You lot can copy the script into the Scripts folder for Glyphs, which volition brand it available in the Script menu, or you lot can but copy it into the Macro Panel.

Later running the script, the post-obit fontmake invocation will generate a variable font:

              fontmake -g sources/Inconsolata-vf.glyphs -o variable                          

This is the version in the fonts/ directory, as it is slightly smaller than the version generated by Glyphs.

We practice not bank check the result of the inco_fix script into version command, every bit nosotros want to preserve editability. It's entirely possible that a future version of fontmake (or Glyphs itself) will be able to handle the source file without running a script.

Exporting instances using fontmake

The source file contains 15 instances, including all weights of the normal (100) width, and as well all masters. This is a reasonable complement for working on the font. Run the gen_instances.py script to generate a total of 72 instances; all combinations of the weights from 200 to 900, and widths 50, 70, eighty, 90, 110, 120, 150, and 200.

There are 2 other instances for Ligconsolata, and fontmake will endeavour to generate those, but the "Rename Glyphs" custom parameter doesn't seem to exist respected by fontmake, so these won't take ligatures enabled. Use the Glyphs export instead (detailed below).

Then run this control to generate OTF:

              fontmake -g sources/Inconsolata-vf.glyphs -i -o otf                          

And this control to generate autohinted TTF:

              fontmake -g sources/Inconsolata-vf.glyphs -i -o ttf -a                          

These are the versions in the fonts/ directory.

Font Export options (from Glyphs)

This is the preferred way to generate the Ligconsolata instances, only

  • TTF and OTF files should exist exported into /fonts/ttf and /fonts/otf folders.

  • TTFs should be generated from Glyphs App with Autohint pick checked. At the moment in that location is no custom build script required to produce font files, since default TTFautohinting options suffice.

Font Export Options

  • OTFs should be generated with these options:
    • Remove Overlap
    • Autohint
    • Save as TTF
    • Export destination: $REPO_PATH/fonts/otf

Future piece of work

In add-on, we desire to consign a subset not including Vietnamese script coverage, to avert over-large line spacing on older applications (such as terminals and text editors) that don't understand the "use typo metrics" flag (see #35).

Glyphstool

The repository too contains some Rust code to dispense Glyphs format masters, in the glyphstool subdirectory. This was used to apply global transforms (generally as a starting point for the width work). Perchance the nigh valuable attribute 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. Information technology's non particularly polished or well documented, merely is provided for completeness, and information technology's possible that it could exist adapted to future tools that work with font data in the Glyphs format. The lawmaking is licensed nether Apache 2.0 or MIT, in keeping with the Rust tradition.


Copyright

Copyright 2006 The Inconsolata Project Authors

Links

Inconsolata Font Mac Os X Download

Posted by: wellswiffer.blogspot.com