FontStyleVariant
Documentation for the FontStyleVariant schema definition in the Polotno Design JSON Schema.
FontStyleVariant
Type Information
Base Type: object
Properties
| Property | Type | Description |
|---|---|---|
fontStyle | string | CSS font style value: 'normal' or 'italic'. Defaults to 'normal'. |
fontWeight | string | CSS font weight value: 'normal', 'bold', or numeric string (e.g. '400', '700'). Defaults to 'normal'. |
src | string | Font source URL, typically in CSS url() format (e.g. 'url("https://example.com/font.woff2")'). |
JSON Schema
{
"additionalProperties": false,
"properties": {
"fontStyle": {
"description": "CSS font style value: 'normal' or 'italic'. Defaults to 'normal'.",
"type": "string"
},
"fontWeight": {
"description": "CSS font weight value: 'normal', 'bold', or numeric string (e.g. '400', '700'). Defaults to 'normal'.",
"type": "string"
},
"src": {
"description": "Font source URL, typically in CSS url() format (e.g. 'url(\"https://example.com/font.woff2\")').",
"type": "string"
}
},
"required": [
"src"
],
"type": "object"
}Related Definitions
No related definitions found.