Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Serve Google Fonts Locally To Avoid Tracking

Google Fonts is a very cool service. I expect it's done more for improving typography on the web than pretty much everything else combined. But, I'm increasingly wary of the tracking. So, I've taken to hosting my own versions of the fonts. Here's how I do it:

  • Select a font with an eligible license from the Google Fonts collection.

  • Instead of downloading the font from the download button, copy the link to the CSS file from embed codes and open it directly.

  • Download the individual versions of the font from the `src`` URLs and store them in your site directory structure.

  • Paste the CSS from the Google file into your site's CSS and update the `src:`` attributes to point to your copies.

    It took me about 15min to walk through that process for a font. Given that I'm thinking on a twenty-year timeline, that's an easy cost to pay.

References