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.

Have you published a response to this? :

Responses

Related posts

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.

An nth-letter selector in CSS

The latest installment in the long tradition of calling for this pseudo-element.

Related links

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

Justified Text: Better Than Expected? – Cloud Four

Some interesting experiments in web typography here.

Tagged with

Introducing TODS – a typographic and OpenType default stylesheet | Clagnut by Richard Rutter

This is a very handy piece of work by Rich:

The idea is to set sensible typographic defaults for use on prose (a column of text), making particular use of the font features provided by OpenType. The main principle is that it can be used as starting point for all projects, so doesn’t include design-specific aspects such as font choice, type scale or layout (including how you might like to set the line-length).

Tagged with

The Beatrice Warde Memorial Lecture - St Bride Foundation

Oh, this looks like an excellent event (in London and online):

Adventures in Episodic Type Design

With David Jonathan Ross

Thursday 17th October 2024

Tagged with

Some of the best free fonts | Clearleft

If you start with a high-quality, legible, free typeface and experiment with size, weight, colour, line height, and (subtle) letter spacing, you might find these free options will get you further than you’d think. These are professional fonts crafted and maintained by experts and they can help your content land the way it deserves to.

Tagged with

Previously on this day

11 years ago I wrote Cake for America

Code for America. Cake for Anna.

17 years ago I wrote Culture

The world of Iain M Banks.

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

A running commentary of the fun at FOWA.

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

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

22 years ago I wrote Wonderful Days

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

22 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).

23 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.