API & MCP

Everything a person can do on Webfont Subsetter (WOFF & TTF), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Webfont Subsetter (WOFF & TTF)

Upload a TrueType font (TTF or WOFF) and keep only the characters you need: type them, paste a page's text, add Unicode ranges or tick common blocks. Variable fonts can be frozen at one weight. You get a WOFF 1.0 or TTF file with kerning kept as a kern table, the size saving and a ready @font-face rule with unicode-range.

Inputs of Webfont Subsetter (WOFF & TTF)
FieldTypeDefaultDescription
font (required)file—Font (TTF or WOFF with TrueType outlines; up to 10 MB; uploaded to the server)
texttextarea—Characters or text to keep
rangestext—Unicode ranges (e.g. U+0020-007E, U+00E9)
presetsmultiselect (basic-latin, latin-1, latin-ext-a, punctuation, greek, cyrillic, digits)[]Common character blocks
formatselect (woff, ttf)"woff"Output format
kerningbooleantrueKeep kerning (as a kern table)
axestext—Freeze a variable font at (e.g. wght=700; empty = keep the default instance)

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-font-subset": { "type": "http", "url": "https://luminafontsubset.usefulweb.app/mcp" }
  }
}