# Generator

> Reference for the Tegaki generator: the options and output format for turning a font into handwriting animation data.

Source: https://tegaki.ink/api/generator/

The Tegaki generator processes fonts and outputs stroke data for handwriting animation. Use the [studio](https://tegaki.ink/studio/) on the Tegaki website to generate font bundles.

## Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| Font | `string` | `"Caveat"` | Google Font family name |
| Characters | `string` | Default charset | Characters to process |
| Resolution | `number` | `400` | Bitmap resolution |
| Skeleton method | `string` | `"zhang-suen"` | `zhang-suen` or `voronoi` |
| Line cap | `string` | `"round"` | `round` or `butt` |
| Bezier tolerance | `number` | `0.5` | Bezier subdivision flatness |
| RDP tolerance | `number` | `1.0` | RDP simplification tolerance |
| Spur length ratio | `number` | `0.08` | Spur pruning threshold (fraction of resolution) |
| Merge threshold ratio | `number` | | Merge threshold for nearby strokes |
| Drawing speed | `number` | | Animation drawing speed |
| Stroke pause | `number` | | Pause between strokes |
