download_font
Retrieve Fontsource fonts to a local directory, choosing subsets, weights, styles, format, variable axes, or the official zip archive.
Instructions
Download font files to disk under //. Default dest is $FONTSOURCE_DOWNLOAD_DIR, else ./fonts (currently /app/fonts). Static mode filters subsets, weights, styles, and format. variable:true fetches --.woff2 variable files and ignores weights and format. zip:true saves the official all-files zip without extracting it. Returns saved names and bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Fontsource id slug such as "inter", "open-sans", or "noto-sans-jp". Get it from search_fonts. It is not the display name. | |
| zip | No | Save the api.fontsource.org/v1/download/<id> zip instead of individual files. | |
| axis | No | Variable only. "wght" (default), "standard", "full", or a single axis tag. | |
| dest | No | Directory to write into, absolute or relative to the server cwd. Files go in <dest>/<id>/. | |
| format | No | Static only. Default woff2. | |
| styles | No | ["normal"], ["italic"], or both. Omit for all. | |
| subsets | No | Subsets such as ["latin","latin-ext","cyrillic"]. Omit for all. | |
| weights | No | Weights such as [400,700]. Omit for all. | |
| variable | No |