convert_font
Convert font files between TTF, OTF, WOFF, and WOFF2 formats, or generate a CSS @font-face snippet from an input font for web use.
Instructions
Convert font files. Input: ttf, otf, woff, woff2. Output: ttf, otf, woff, woff2, css (@font-face snippet). Requires fonttools: pip install fonttools brotli.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Absolute path to input font file | |
| outputPath | Yes | Absolute path for output font file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) |