Font API Reference
kittl.font — upload custom fonts.
Scope: fonts:create
createFont(params)
Uploads one or more font files as a font family.
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name for the font family |
files | Blob[] | Yes | Array of font file blobs (one per style) |
styles | string[] | Yes | Style name for each file (e.g. ['Regular', 'Bold', 'Italic']) — must match files in order and length |
extensionId | string | No | Associate the font with a specific extension |
previewImage | Blob | No | Preview image blob for the font family |
Returns SdkResultAsync<UploadedFontFamily, Error>:
| Property | Type | Description |
|---|---|---|
id | string | Unique font family ID |
name | string | Font family name |
fonts | UploadedFontStyle[] | Array of uploaded styles (each has id, name, style, objectName) |
preview | string | Preview image URL (if provided) |