Local Fonts

Local fonts means the the web-font is on the server that hosts the website. A web font is recognisable from the .wof and .wof2 file type.

JenT posted a helpful post on the consequences of a court case where the claimant was successful in arguing that the owner of the web site had breached GDPR regulations by loading Google fonts because Google fonts trace the IP address of the person visiting the web site.

As Hacker News points out, Google Fonts is a font embedding service library from Google, allowing developers to add fonts to their Android apps and websites simply by referencing a stylesheet. As of January 2022, Google Fonts is a repository for 1,358 font families and is used by over 50.1 million websites.

For self-hosted sites, which our e-commerce site at FLYING TWIGS is, then the process of swapping over to local fonts is doable. We use GeneratePress and this an Adding Local Fonts page in the documentation on how to pull down Google fonts and host them locally using this tool – google-webfonts-helper that identifies the files for Google fonts.

I have already done this on Flying Twigs and I am working my way through my other self-hosted sites. That said, in WP 6.2 it looks as though WP will incorporate some method of doing this without having to add custom CSS and without having to temporarily add php code to the functions file to allow uploading .woff and .woff2 files.

The code one needs to add (and then remove once one has uploaded the .woff files) to the functions file is to allow uploading .woff files, which to protect against malicious code being injected, are normally not allowed.

WP Tavern has articles on local fonts, and suggests Bunny Fonts as a plugin as an easier way to replace Google fonts. I read the documentation for Bunny Fonts and it seemed just as straightforward to use the GeneratePress method. And there is every reason to think that the same GeneratePress method would work on any theme, not that I have tried it. And it would work with any web font that one might buy and download.

All this said, none of this applies to WP.com that operates above the site owner’s head so to speak,

But for an overview of all of this – I recommend WPCOMMAVEN’s article on Google fonts and GDPR.

I thought I read somewhere that Google claimed that the IP addresses were obfuscated so that no GDPR rules were broken, but I may be imagining that. Maybe Google will take the initiative and put the fonts somewhere that is air-gapped form the rest of Google so that nothing is fed back to Google. It seems easier than getting a reputation from fifty million disgruntled web site owners who may or may not know how to cure such problem as there is

PostScript

Wouldn’t you know it – the helper tool is down at the moment.

Knee Deep In Water

cow knee deep in the River Cam near Cambridge

It’s standing in the River Cam outside Cambridge, near the village of Fen Ditton. Could it get out if it wanted to? It didn’t seem concerned, and there were other cows in the small herd eating on the bank. So all in all, I decided that by its demeanour it was OK.

Thinking about it now, I recall that the local Council was not sure at one point whether they could afford the insurance they needed to cover the cows that are let loose on Midsummer Common. The insurance included the cost of getting someone out to rescue cows that fall in the river. That’s at Midsummer Common where the banks are sheer. Still, maybe I should have hung on a bit longer yesterday and watched that the cow made dry land. But when, how long?

I wasn’t the only person there, And I imputed to ‘someone’ in the bystanders and walkers, the knowledge of whether the cow was really in trouble.

When Kitty Genovese was murdered in 1965 in Queens in New York City in full sight of neighbours looking down from their apartment windows, the newspapers said that people were apparently uncaring or didn’t want to get involved.

Robert Cialdini wrote later that when psychologists delved deeper into the mindset of the neighbours, the main reason no one called the police was that everyone assumed that someone else had.

Cialdini gives a tip if someone falls, is hit by a car, whatever. If you are tending them and a small crowd gathers and everyone is looking, who is calling an ambulance?

Cialdini says the thing to do is to single out one person in the crowd and say ‘You with the grey jacket and the briefcase, call an ambulance.’

I just looked at the local Cambridge news, and no mention of cows in the river.