Polotno Docs

FontStyleVariant

Documentation for the FontStyleVariant schema definition in the Polotno Design JSON Schema.

FontStyleVariant

Type Information

Base Type: object

Properties

PropertyTypeDescription
fontStylestringCSS font style value: 'normal' or 'italic'. Defaults to 'normal'.
fontWeightstringCSS font weight value: 'normal', 'bold', or numeric string (e.g. '400', '700'). Defaults to 'normal'.
srcstringFont 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"
}

No related definitions found.

On this page