Font
Documentation for the Font schema definition in the Polotno Design JSON Schema.
Font
Type Information
Base Type: object
Properties
| Property | Type | Description |
|---|---|---|
fontFamily | string | Font family name. |
styles | Array<FontStyleVariant> | Font style variants for multi-weight/style font families. Each entry generates a separate |
url | string | URL to load the font from. Used when the font has a single style variant. |
JSON Schema
{
"additionalProperties": false,
"properties": {
"fontFamily": {
"description": "Font family name.",
"type": "string"
},
"styles": {
"description": "Font style variants for multi-weight/style font families. Each entry generates a separate",
"items": {
"$ref": "#/definitions/FontStyleVariant"
},
"type": "array"
},
"url": {
"description": "URL to load the font from. Used when the font has a single style variant.",
"type": "string"
}
},
"required": [
"fontFamily"
],
"type": "object"
}