Skip to main content

Font API Reference

kittl.font — upload custom fonts.

Scope: fonts:create

createFont(params)

Uploads one or more font files as a font family.

PropertyTypeRequiredDescription
namestringYesName for the font family
filesBlob[]YesArray of font file blobs (one per style)
stylesstring[]YesStyle name for each file (e.g. ['Regular', 'Bold', 'Italic']) — must match files in order and length
extensionIdstringNoAssociate the font with a specific extension
previewImageBlobNoPreview image blob for the font family

Returns SdkResultAsync<UploadedFontFamily, Error>:

PropertyTypeDescription
idstringUnique font family ID
namestringFont family name
fontsUploadedFontStyle[]Array of uploaded styles (each has id, name, style, objectName)
previewstringPreview image URL (if provided)