Schemas / Layout

rig.layout.character_style

v1.0.0 · stable maturity: stable 11 fields 0 required

Fields

FieldTypeMeaning
storyStyle entity optional Optional. Story character style this map applies to
basedOn entity optional Optional. Parent layout character style; absent / null = none
font entity optional Optional. rig.media.asset_ref kind font
fontSize float optional Optional. Size override; absent = inherit paragraph
paint entity optional Optional. Paint entity for the run colour
italic bool optional Optional. Oblique / italic emphasis; absent = false
bold bool optional Optional. Weight emphasis; absent = false
tracking float optional Optional. Uniform letterspace in thousandths of an em; absent = 0
kerningMode enumoff · metrics optional Optional. off / metrics (font kern / GPOS pairs). Absent = metrics
baselineShift float optional Optional. Vertical shift off the baseline, positive raises; absent = 0
case enumnone · upper · lower · small-caps optional Optional. none / upper / lower / small-caps. Absent = none

Visual map for a rig.story.character_style. Format when present.

Story character styles are identity only. Face override, size, paint, and emphasis flags live here.

Based-on chains stay acyclic. A cycle is a document error. Do not put these fields on rig.story.*.

JSON Schema

Resolves at https://rig.works/schemas/rig.layout.character_style.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.layout.character_style.schema.json",
  "title": "rig.layout.character_style",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "storyStyle": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "basedOn": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "font": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "fontSize": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "paint": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "italic": {
      "$ref": "./_defs.schema.json#/$defs/bool"
    },
    "bold": {
      "$ref": "./_defs.schema.json#/$defs/bool"
    },
    "tracking": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "kerningMode": {
      "type": "string",
      "enum": [
        "off",
        "metrics"
      ]
    },
    "baselineShift": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "case": {
      "type": "string",
      "enum": [
        "none",
        "upper",
        "lower",
        "small-caps"
      ]
    }
  },
  "x-rig-maturity": "stable"
}

Seen in

story-frames.json