API & MCP

Everything a person can do on Handwriting to Font, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Handwriting to Font

Leave the page fields empty to get a printable handwriting template (PDF) for a character set. Write one character per box, photograph or scan the page and upload it: the four corner squares are found, the page is straightened, every box is read and your strokes are traced into a TrueType font with spacing and basic kerning. The same engine runs in Lumina Type Lab → Glyph Lab on your device.

Inputs of Handwriting to Font
FieldTypeDefaultDescription
presetselect (1, 2, 3, 4, 5, 15)"1"Character set of the template
paperselect (a4, letter)"a4"Paper size
customtext—Your own characters (only for “Your own characters”)
page1file—Filled-in page (photo or scan: PNG, JPEG or WebP, up to 20 MB; empty = get the template)
page2file—Second page (optional)
page3file—Third page (optional)
familyNametext"My Handwriting"Font name
inknumber0.6Ink level (share of paper brightness; higher picks up lighter strokes)
outlineselect (smooth, straight)"smooth"Outlines
sideBearinginteger40Space on each side of a letter (font units)
spaceWidthinteger300Width of the space character (font units)
kerningnumber0.6Automatic kerning strength (0 = off, 1 = strong)
sampletext—Sample text for the preview
datetext—Creation date written into the font (optional, YYYY-MM-DD)

Example request

Printable template for basic Latin letters on A4

curl -X POST https://luminahandwritingfont.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"preset":"1","paper":"a4","custom":"","familyName":"My Handwriting","ink":0.6,"outline":"smooth","sideBearing":40,"spaceWidth":300,"kerning":0.6,"sample":"","date":""}'

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-handwriting-font": { "type": "http", "url": "https://luminahandwritingfont.usefulweb.site/mcp" }
  }
}