Schemas / Font (UFO / variable)

rig.font.axis

v0.31.0 · draft 5 fields 4 required

Fields

FieldTypeMeaning
tag string required Required. Four-character tag (wght, wdth, slnt, GRAD)
name string optional Optional. Human label (UFO / UI); absent = use tag
min float required Required. Minimum design value
default float required Required. Default design value
max float required Required. Maximum design value

One design axis on a face. Format when present.

OpenType fvar axis. Parent to the rig.font.face with rig.spatial.relationship. Compose rig.meta.named if you want a display label separate from name. Order among axes is relationship.order (or document order when absent).

Piecewise normalized maps compose optional rig.font.avar on the same entity. Absent avar = identity (−1/−1, 0/0, 1/1).

Do not put axis values on rig.media.text - live coordinates are host / document state. Named instances are fulfillment.

JSON Schema

Resolves at https://rig.works/schemas/rig.font.axis.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.font.axis.schema.json",
  "title": "rig.font.axis",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "tag": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "name": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "min": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "default": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "max": {
      "$ref": "./_defs.schema.json#/$defs/float"
    }
  },
  "required": [
    "tag",
    "min",
    "default",
    "max"
  ]
}

Seen in

font-var.json