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

Zach Leatherman

Vague licensing requirements for the definition of distribution I think. You can serve them in web formats but more risky to let people download them in web formats 🥸

Christopher Kirk-Nielsen

Okay, what if… The extra step makes you more likely to give up and use the provided embed instead, thus giving tracking data back to Google (if that’s still a thing?). removes tinfoil hat

4 Likes

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

# Liked by LurkGently on Monday, March 1st, 2021 at 10:23am

# Liked by Sara Soueidan on Monday, March 1st, 2021 at 11:08am

# Liked by Megan on Monday, March 1st, 2021 at 1:47pm

Related posts

Fidinpamp

A small-scale conspiracy theory from the innards of Google.

Doing the right thing for the wrong reasons

Speak softly and carry a big Google stick.

Numbers

“I am not a number, I am a free website!”

Portals and giant carousels

Trying to understand why people think they need to make single page apps.

AMPstinction

Thinking about the end game.

Related links

Performance-testing the Google I/O site - JakeArchibald.com

Modern web development:

Imagine you went to a restaurant, took a seat, and 20 minutes later you still haven’t been given a menu. You ask where it is, and you’re told “oh, we’re currently cooking you everything you might possibly ask for. Then we’ll give you the menu, you’ll pick something, and we’ll be able to give you it instantly, because it’ll all be ready”.

Single page apps, ladies and gentlemen.

Tagged with

The Core Web Vitals hype train

Goodhart’s Law applied to Google’s core web vitals:

If developers start to focus solely on Core Web Vitals because it is important for SEO, then some folks will undoubtedly try to game the system.

Personally, my beef with core web vitals is that they introduce even more uneccessary initialisms (see, for example, Harry’s recent post where he uses CWV metrics like LCP, FID, and CLS—alongside TTFB and SI—to look at PLPs, PDPs, and SRPs. I mean, WTF?).

Tagged with

How Google Pagespeed works: Improve Your Score and Search Engine Ranking

Ben shares the secret of SEO. Spoiler: the villain turns out to be Too Much JavaScript. Again.

Time to Interactive (TTI) is the most impactful metric to your performance score.

Therefore, to receive a high PageSpeed score, you will need a speedy TTI measurement.

At a high level, there are two significant factors that hugely influence TTI:

  • The amount of JavaScript delivered to the page
  • The run time of JavaScript tasks on the main thread

Tagged with

Home  |  web.dev

I guess this domain name is why our local developmemnt environments stopped working.

Anyway, it’s a web interface onto Lighthouse (note that it has the same bugs as the version of Lighthouse in Chrome). Kind of like webhint.io.

Tagged with

Google AMP - A 70% drop in our conversion rate. - Rockstar Coders

Google hijacking and hosting your AMP pages (in order to pre-render them) is pretty terrible for user experience and security:

I’m trying to establish my company as a legitimate business that can be trusted by a stranger to build software for them. Having google.com reeks of a phishing scam or fly by night operation that couldn’t afford their own domain.

Tagged with

Previously on this day

15 years ago I wrote Responsive refresh

Giving the UX London site some extra flexibility.

18 years ago I wrote Microsoft in London

A morning of otherworldly presentations from Steve Balmer and others.

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

22 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?":

23 years ago I wrote Eric Myer Photography

Fun with faces.

23 years ago I wrote Edward J.Funkuncle

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

23 years ago I wrote Dive Into Mark

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

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

24 years ago I wrote Whaddya think?

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