Polotno Docs

Font

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

Font

Type Information

Base Type: object

Properties

PropertyTypeDescription
fontFamilystringFont family name.
stylesArray<FontStyleVariant>Font style variants for multi-weight/style font families. Each entry generates a separate
urlstringURL 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"
}

On this page