ProgramIn Studio All articles
Tooling

Type Stays Home: A Small Studio's Guide to Self-Hosted Fonts

ProgramIn Studio
Type Stays Home: A Small Studio's Guide to Self-Hosted Fonts

Photo by Photo by Kelsey Todd on Unsplash on Unsplash

Fonts are the quietest dependency in most web projects. They arrive via a line of CSS, they look fine in staging, and nobody puts them on the risk register. Then a client asks where their readers' data goes, or a new project inherits four font families from three different CDNs, and the quiet dependency starts asking awkward questions.

Self-hosting is not a dramatic security project. It is closer to moving a supplier in-house: you keep the same product, but you own the delivery, the paperwork and the failure mode. For a small studio, that is usually a good trade.

The font CDN is a supplier, not a shortcut

When you link to a third-party font service, every reader's browser makes a request to another organisation. That organisation sees an IP address, a user agent, a referrer and the page the font was requested from. Under UK GDPR, an IP address can be personal data. If the provider sits outside the UK, you are also in transfer territory.

This does not mean every external font is unlawful. It means you need a reason, a record and a sensible risk call. The German court ruling from 2022 got a lot of attention because it treated a font request as a transfer of personal data without consent. The UK position is not identical, but the practical lesson travels: if you cannot explain why the request is necessary and what happens to the data, you have a gap.

We are not lawyers, and this is not legal advice. But a studio can make the position much easier by removing the third-party request altogether. A self-hosted font is served from your domain. There is no extra recipient in the chain, no cross-border transfer to document for type, and one fewer supplier to review when your privacy notice changes.

Start with an inventory, not a download

Before moving anything, list every font face in production. Not just the families. The weights, the styles, the file formats, the licence and where each file comes from. A spreadsheet is fine. A markdown file in the repo is better because it sits next to the code.

Look through your CSS for @import, <link> tags and any font files bundled by a framework. Check the CMS theme too. Small studio sites are brilliant at hiding a second font stack inside a page builder.

For each face, note three things: who owns it, what the licence allows, and whether you actually use it. Most sites we audit are carrying at least one weight nobody can point to on a real page. That is not just a performance cost. It is a licensing cost waiting to be explained.

The licensing details teams miss

Self-hosting does not make a font free. It changes the delivery method, not the terms.

Open-source fonts are usually straightforward, but keep the licence file in the repository. Commercial fonts are where teams get caught. A desktop licence is not a web licence. A web licence may cap monthly pageviews, restrict the number of domains, or require you to report usage. Some foundries allow subsetting; others treat a modified file as a new derivative and want permission first. If the licence says you must keep the font name, do not rename the file to brand-sans-final-v2.[woff2](https://en.wikipedia.org/wiki/Web_Open_Font_Format) and hope nobody notices.

Our rule is simple: every font folder gets a LICENCE.md with the source, the purchase date, the permitted domains, the pageview limit if there is one, and who checked it. When a client asks in eighteen months why the type looks different after a rebrand, that file answers the question before it becomes a support ticket.

Self-host without the performance hangover

Moving fonts in-house can make a site faster or slower. It depends on what you serve.

Start with WOFF2. For most UK studio sites it is the only format you need in 2026. If you are using a variable font, serve one file rather than five static weights. Then subset. A full Latin font may carry glyphs your site will never use; a subset can cut the file size dramatically without changing the design.

Tools like Glyphhanger and fonttools are the usual starting point. Keep the original file and document the command you ran. A subset is a build artefact, not a mysterious replacement.

In CSS, be deliberate:

@font-face {
  font-family: 'Studio Sans';
  src: url('/fonts/studio-sans-subset.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

Preload only the face that appears above the fold. If you preload every weight, you have recreated the CDN problem with extra steps. Set long cache headers on the font files, because they rarely change. And keep a system fallback stack that looks intentional, not like the page gave up.

Treat the files like a dependency

A font is a versioned asset. Pin it. Record the version, the source URL, the licence, the subset command and the date it was last checked. If you use a package manager or build step, commit the generated file or the lockfile that produced it. Do not let a designer's Desktop folder become the only copy.

Add a line to your monthly dependency review: are the font files still the ones we think they are? That sounds fussy until a foundry updates a family, a client rebrands, or a new pageview tier kicks in.

A migration order that does not derail a sprint

Pick one site. Inventory the faces. Choose the two families that actually carry the design. Download the licensed files, subset them, add the @font-face rules, test on a slow connection and a cheap Android phone, then remove the old CDN links. Update the privacy notice if it mentioned the font provider. Put the licence note in the repo.

The whole job is usually smaller than the meeting about it. And once it is done, your type is no longer a stranger's request. It is just another file you serve, version and understand.

All Articles

Related Articles

The Version They Keep: Making Your Site Behave on Paper

The Version They Keep: Making Your Site Behave on Paper

Twice Past Midnight: A Clock-Change Drill for Anything on a Timer

Twice Past Midnight: A Clock-Change Drill for Anything on a Timer

Staging Is Not a Landfill: The Friday Reset That Keeps Demos Honest

Staging Is Not a Landfill: The Friday Reset That Keeps Demos Honest