Lexicon / Type · 2 of 5

33 / Type

Variable Font Animation

Weight is a dial here, not a set of steps. Drag it, and the letters thicken without ever swapping to another file.

Twelve sizes, one file

William Caslon’s specimen sheet of 1734, where every size of type is a separate font of metal, known by a name. Scroll down the sheet: beside it, one variable font runs through every size in between. Then drag the dial.

William Caslon’s specimen sheet of 1734: the opening of Cicero’s first speech against Catiline set in every size of his roman and italic, from French Cannon down to Pearl, beside Greek, Hebrew, Arabic and other scripts
Metal · a separate font for every size

One file · every size and weight between

Quousque tandem abutere, Catilina, patientia nostra?

400
  1. 200Extra Light
  2. 300Light
  3. 400Regular
  4. 600Semi­bold
  5. 700Bold
  6. 900Black
  1. French Cannon
  2. Two Lines Great Primer
  3. Two Lines English
  4. Double Pica
  5. Great Primer
  6. English
  7. Pica
  8. Small Pica
  9. Long Primer
  10. Brevier
  11. Nonpareil
  12. Pearl

also called axis interpolation · variable axes

A variable font exposes continuous axes rather than fixed cuts, so weight can be animated instead of swapped. One file, the whole family, and no flash between weights. Caslon cut every size by hand as its own font, and a size was designed for its size: sturdier and clearer when small, finer when large. A variable font carries that as an axis, optical size, so as the line shrinks it turns into a text face and as it grows, into a display face. Weight is another axis. A family used to be six files, ExtraLight to Black; here they are six marks on one dial, and every weight between them is there too.

How it is built@property --w { syntax: '<number>'; inherits: true; initial-value: 400 } .line { font-weight: var(--w); /* the dial: any weight in one file */ font-optical-sizing: auto; /* the design follows the size */ font-size: calc(exp(var(--lb)) * var(--m) * 1px) } /* the size glides with the scroll */ dial.oninput = () => stage.style.setProperty('--dial', dial.value)

In full, on GitHub index.html showcase.css showcase.js

Sheet — A Specimen by William Caslon, Letter-Founder, in Chiswell-Street, London, 1734; public domain, via Wikimedia Commons. Type — Source Serif 4, Adobe, inspired by the forms of Pierre Simon Fournier; SIL Open Font License. Facts — William Caslon; Traditional point-size names; optical size; Source Serif.