Variable fonts

We have a tradition here at Clearleft of having the occasional lunchtime braindump. They’re somewhat sporadic, but it’s always a good day when there’s a “brown bag” gathering.

When Google’s AMP format came out and I had done some investigating, I led a brown bag playback on that. Recently Mark did one on Fractal so that everyone knew how work on that was progressing.

Today Richard gave us a quick brown bag talk on variable web fonts. He talked us through how these will work on the web and in operating systems. We got a good explanation of how these fonts would get designed—the type designer designs the “extreme” edges of size, weight, or whatever, and then the file format itself can extrapolate all the in-between stages. So, in theory, one single font file can hold hundreds, thousands, or hundreds of thousands of potential variations. It feels like switching from bitmap images to SVG—there’s suddenly much greater flexibility.

A variable font is a single font file that behaves like multiple fonts.

There were a couple of interesting tidbits that Rich pointed out…

While this is a new file format, there isn’t going to be a new file extension. These will be .ttf files, and so by extension, they can be .woff and .woff2 files too.

This isn’t some proposed theoretical standard: an unprecedented amount of co-operation has gone into the creation of this format. Adobe, Apple, Google, and Microsoft have all contributed. Agreement is the hardest part of any standards process. Once that’s taken care of, the technical solution follows quickly. So you can expect this to land very quickly and widely.

This technology is landing in web browsers before it lands in operating systems. It’s already available in the Safari Technology Preview. That means that for a while, the very best on-screen typography will be delivered not in eBook readers, but in web browsers. So if you want to deliver the absolute best reading experience, look to the web.

And here’s the part that I found fascinating…

We can currently use numbers for the font-weight property in CSS. Those number values increment in hundreds: 100, 200, 300, etc. Now with variable fonts, we can start using integers: 321, 417, 183, etc. How fortuitous that we have 99 free slots between our current set of values!

Well, that’s no accident. The reason why the numbers were originally specced in increments of 100 back in 1996 was precisely so that some future sci-fi technology could make use of the ranges in between. That’s some future-friendly thinking! And as Håkon wrote:

One of the reasons we chose to use three-digit numbers was to support intermediate values in the future. And the future is now :)

Needless to say, variable fonts will be covered in Richard’s forthcoming book.

Responses

Related posts

Tunes and typefaces

Balancing distinction and harmony.

Tweaking navigation sizing

Sometimes a consistent interface doesn’t reflect the reality of usage.

Sass and clamp

Worst buddy movie ever.

Billboards and Novels by Jon Tan

Liveblogging Jon’s talk at An Event Apart in Atlanta.

Making the Patterns Day website

The joy of getting hands-on with HTML and CSS.

Related links

What’s new in web typography? | Clagnut by Richard Rutter

There have been so many advances in HTML, CSS and browser support over the past few years. These are enabling phenomenal creativity and refinement in web typography, and I’ve got a mere 28 minutes to tell you all about it.

I’ve been talking to Rich about his Web Day Out talk, and let me tell you, you don’t want to miss it!

It’s gonna be a wild ride! Join me at Web Day Out in Brighton on 12 March 2026. Use JOIN_RICH to get 10% off and you’ll also get a free online ticket for State of the Browser.

Tagged with

Coming Soon · Gaeltacht Type

👀

Tá sceitimíní orm!

Tagged with

How to create a typographic hierarchy – Pangram Pangram Foundry

  1. Start with the text
  2. Use size intentionally
  3. Contrast weights and styles
  4. Play with spacing
  5. Use colour, but don’t rely on it
  6. Limit your font choices (but choose well and wisely)
  7. Repeat, repeat, repeat
  8. Test your system

Tagged with

Better typography with text-wrap pretty | WebKit

Everything you ever wanted to know about text-wrap: pretty in CSS.

Tagged with

Citywide – Jason Santa Maria

A fun new font from Jason:

Citywide is a sans serif family inspired by mid-1900s bus and train destination roll signs.

Tagged with

Previously on this day

12 years ago I wrote Cake for America

Code for America. Cake for Anna.

18 years ago I wrote Culture

The world of Iain M Banks.

19 years ago I wrote The Future of Web Apps, day two

A running commentary of the fun at FOWA.

19 years ago I wrote The Future of Web Apps, day one

I’m back in London for a conference that means business.

23 years ago I wrote Wonderful Days

Earlier this week, I mentioned the trailers for the book Robota.

23 years ago I wrote Voice Box

In some ways, Voice Box is a pretty neat application. It downloads RSS feeds and turns them into sound files that you can save (and even sync to your iPod).

24 years ago I wrote Iran nets another revolt

Ben Hammersley’s article about the internet in Iran has been published in The Guardian. It’s a fascinating read.