Designspace, stations and drawings
A variable font is not one design but a continuous range of designs. You draw a few of them by hand, and the font computes (interpolates) everything in between. This page explains the words Counterpunch uses for the parts of that system and how they differ. The same words appear in the interface, in the handbook and in the Python API.
Designspace and axeslink
An axis is one way the design can vary, such as weight (wght), width (wdth) or optical size (opsz). Each axis has a minimum, a maximum and a default value. Together, the axes span the designspace: with one axis it is a line, with two a plane, and with three a box like the one in the figure. A font can have more axes than three; the principle stays the same, it only gets harder to draw n-dimensional spaces.
A location is any point in the designspace, written as one value per axis, for example wght 650, wdth 100, opsz 12. The axis sliders in the editor set the current location. Every other term on this page is something that sits at a location.
Stationslink
A station is a named location that the whole font shares. It carries the font-wide information that belongs to that location: its name, its axis values, its vertical metrics and alignment zones, and its kerning. In the figure, Light, Bold, Wide and Display are stations.
Its name, vertical metrics, and alignment zones are purely design-time aids to help a designer navigate and comprehend; they bear no meaning for the compiled font. But kerning needs to be defined at a certain location, and stations are the place for it.
One station is the default station. Apps that ignore variations show it, and the compiled font is built from it. In the figure it is Light, marked with a second ring, at the default location of all axes.
You don’t need a station on every corner of the designspace. The figure has four: the default station Light, and one station at the far end of each axis, Bold for weight, Wide for width and Display for optical size. Each of them sits at the default of the other two axes, so the change it describes applies across the whole designspace. The font computes the remaining corners by adding up those changes: Bold Wide is Light, plus what Bold changes, plus what Wide changes. This is still interpolation, not extrapolation, because the corners lie inside the designspace.
A station away from the default on another axis works differently. If Wide sat halfway along the weight axis, its change would fade out towards Light and Bold, and the font would only get wider around the middle weights.
Adding up changes works, but nobody has looked at the result. The bold change was drawn on normal-width letters, and applied unchanged to wide or condensed letters it gives stems of the wrong thickness, counters that fill in and joins that don’t fit. That’s why professional designers prefer to draw every corner. The figure shows them in gray.
Leaving a corner out makes sense where the combination is rarely used and the computed result is good enough. Nunito Sans, for example, draws its smallest optical size, 6 pt, only at normal width: condensed or expanded text at caption sizes is rare, so the font computes those corners. Axes designed to add up cleanly, such as the x-height and stem-thickness axes of Roboto Flex, get only one station at each end and none at the corners.
Stations are listed in Font Info → Stations. Glyphs calls them masters; designspace files call them sources.
Drawingslink
A drawing is one glyph’s outline at one station: its contours, components, anchors and advance width. Each glyph normally has one drawing per station. In the figure, the filled dot inside each station ring is a drawing of one glyph. They sit at the same location but are not the same thing: the station belongs to the whole font, the drawing to one glyph.
To interpolate, all drawings of a glyph must be compatible: the same contours with the same points in the same order. Then the font can blend any two drawings into the shapes between them.
The drawing you are editing is the current drawing. When the current location matches no stored drawing, the canvas shows an interpolated view with gray points instead. You can look at it but not edit it.
Glyphs calls these layers; designspace files call them glyph in a source.
Free drawingslink
A free drawing is a drawing of one glyph at a location of its own, not at a station. It only exists in that one glyph, so it carries no font-wide metrics or kerning.
Free drawings fix problems in a single glyph without adding a station to the whole font. In the figure, a glyph has a free drawing at the Regular weight, between Light and Bold, for example because its bowl fills in too early there. All other glyphs interpolate straight from the stations.
Glyphs calls these brace layers; designspace files call them sparse sources.
Background drawingslink
A background drawing is a reference outline behind a drawing, for example an earlier version or a traced sketch. It is shown on the canvas but never interpolated or exported.
Variationslink
A variation is an alternate set of a glyph’s drawings that replaces the base glyph inside part of the designspace, for example a dollar sign whose stroke disappears above wght 700. Each variation has its own drawings at the stations, and can have free drawings too. The editor lists them under Variations.
Glyphs calls them bracket layers; designspace files call them rules.
Instanceslink
An instance is a named location that you export, either as a separate static font or as a named style inside the variable font, such as Bold or Light Display. Instances are output: they hold no drawings of their own. They can sit anywhere, on a station or between stations. For example, a Regular instance could sit halfway between the Light and Bold stations.
Layerslink
A layer is one color layer of a drawing in a color font. In Counterpunch, “layer” never means a glyph’s outline at a location; we call that a drawing.
How the terms relatelink
| Term | Belongs to | Has a location | Holds outlines | Role |
|---|---|---|---|---|
| Location | — | is one | no | Where something sits |
| Station | the whole font | yes | no, but metrics and kerning | Input: where you draw |
| Drawing | one glyph, at one station | the station’s | yes | Input |
| Free drawing | one glyph | its own | yes | Input |
| Background drawing | one drawing | the drawing’s | yes, for reference | Reference |
| Variation | one glyph | an axis range | yes, its own drawings | Input |
| Instance | the whole font | yes | no | Output: what you ship |
| Layer | one drawing | the drawing’s | yes, one color | Part of a drawing |
The short version: stations say where the font is drawn, drawings and free drawings are what is drawn, and instances are what you ship.
Names in other appslink
| Counterpunch | Glyphs | Designspace and UFO |
|---|---|---|
| Station | Master | Source |
| Drawing | Master layer | Glyph in a source |
| Free drawing | Brace layer | Sparse source |
| Variation | Bracket layer | Rule |
| Instance | Instance (export) | Instance |
Counterpunch reads and writes these formats with their own names, so nothing changes in your files. Working with axes and stations in the editor is in Axes and stations. Adding and removing drawings is in Drawing operations. All terms are in the Glossary.