GetAssetPack

Font subsetter.

Make a font smaller: see every character it has, keep only the ones your game or site uses and save a light version.

  • Every character of the font in a table, by script; click to keep or remove, drag to do many
  • Keep only ASCII, Latin, Cyrillic or the characters of any text you paste
  • TTF, OTF, WOFF and WOFF2 in and out; ligatures, kerning and names stay

Runs locally in your browser

How to use the font subsetter

  1. Drop a TTF, OTF, WOFF or WOFF2 font, or use Open. The table shows every character the font has, grouped by script, as the font draws it.
  2. Click a character to remove it, click again to keep it; drag across a row to do many at once. Keep all (Ctrl+A or Cmd+A), Remove all and Invert work on the whole font, the buttons on a group on that group only.
  3. To keep just what your game shows, pick ASCII, Latin or Cyrillic, or paste your game's text (or ranges like U+0020-007E) and press Keep only.
  4. Pick the format and save. The size of the result shows as you go, and the preview sets your text in it.

Questions

Why subset a font?

A font made for many languages carries thousands of characters your game never shows. A game in English needs fewer than a hundred; cutting the rest makes the font a fraction of its size, so the build, the download or the web page gets lighter and loads faster.

Does the subset keep ligatures and kerning?

Yes. The ligatures, alternates and accents the kept characters reach through the font's OpenType tables stay, and so do kerning, the font's names and its licence text. Untick Keep all OpenType features to keep only the common ones, and Keep hinting to drop the hinting for a smaller file.

Which format should I save?

WOFF2 is the smallest and is what browsers want. Game engines (Unity, Godot, Unreal, GameMaker) read TTF and OTF; WOFF is for old browsers. A variable font can also be made static at its default style, which makes it much smaller.

Is it allowed to subset a font?

Most open licences, such as the SIL Open Font License, allow it; the OFL asks that a changed font does not keep a reserved font name. Check the licence of a commercial font before you ship a subset of it.

Are my fonts uploaded anywhere?

No. The font subsetter reads and cuts the font in your browser, and nothing is sent to a server.

Related tools

Looking for a font for your game? Browse fonts in the catalog.

Subsetting uses HarfBuzz (Old MIT licence), compiled to WebAssembly by harfbuzzjs (MIT); WOFF2 uses Google's woff2 (MIT) through woff2-encoder (MIT).