Downloading from Google Fonts

If you’re using web fonts, there are good performance (and privacy) reasons for hosting your own font files. And fortunately, Google Fonts gives you that option. There’s a “Download family” button on every specimen page.

But if you go ahead and download a font family from Google Fonts, you’ll notice something a bit odd. The .zip file only contains .ttf files. You can serve those on the web, but it’s far from the best choice. Woff2 is far leaner in file size.

This means you need to manually convert the downloaded .ttf files into .woff or .woff2 files using something like Font Squirrel’s generator. That’s fine, but I’m curious as to why this step is necessary. Why doesn’t Google Fonts provide .woff or .woff2 files in the downloaded folder? After all, if you choose to use Google Fonts as a third-party hosting service for your fonts, it most definitely serves up the appropriate file formats.

I thought maybe it was something to do with the licensing. Maybe some licenses only allow for unmodified truetype files to be distributed? But I’ve looked at fonts with different licenses—some have Apache 2 licensing, some have Open Font licensing—and they’re all quite permissive and definitely allow for modification.

Maybe the thinking is that, if you’re hosting your own font files, then you know what you’re doing and you should be able to do your own file conversion and subsetting. But I’ve come across more than one website in the wild serving up .ttf files. And who can blame them? They want to host their own font files. They downloaded those files from Google Fonts. Why shouldn’t they assume that they’re good to go?

It’s all a bit strange. If anyone knows why Google Fonts only provides .ttf files for download, please let me know. In a pinch, I will also accept rampant speculation.

Trys also pointed out some weird default behaviour if you do let Google Fonts do the hosting for you. Specifically if it’s a variable font. Let’s say it’s a font with weight as a variable axis. You specify in advance which weights you’ll be using, and then it generates separate font files to serve for each different weight.

Doesn’t that defeat the whole point of using a variable font? I mean, I can see how it could result in smaller file sizes if you’re just using one or two weights, but isn’t half the fun of having a weight axis that you can go crazy with as many weights as you want and it’s all still one font file?

Like I said, it’s all very strange.

Have you published a response to this? :

Responses

1 Like

# Liked by George Salib® on Thursday, October 1st, 2020 at 6:36pm

Previously on this day

10 years ago I wrote Responsive refresh

Giving the UX London site some extra flexibility.

13 years ago I wrote Microsoft in London

A morning of otherworldly presentations from Steve Balmer and others.

17 years ago I wrote On this date...

I’m taking it easy today. It is, after all, Labour Day in Australia, Independence Day in Nigeria, Armed Forces Day in South Korea, National Liberation Day in China and a public holiday in Botswana.

17 years ago I wrote What's on Your Dock?

Here’s one for the OS X users amongst you. There’s an article over at O’Reilly called "What’s on Your Dock?":

18 years ago I wrote Eric Myer Photography

Fun with faces.

18 years ago I wrote Edward J.Funkuncle

Set aside some time to look through the wonderful Funkuncle website.

18 years ago I wrote Dive Into Mark

Hot on the heels of my blogging anniversary, comes this anniversary from Mark:

19 years ago I wrote Trillion-atom triumph

Nature magazine has an an article about entangling matter on a subatomic scale. Scientists in Denmark have made a breakthrough in the scale of the entanglements.

19 years ago I wrote Whaddya think?

So, here’s the newly relaunched Adactio site. I hope you like it.