Schemas / Media

rig.media.font_face

v1.0.0 · stable maturity: stable 4 fields 2 required

Fields

FieldTypeMeaning
family string required Family name a run looks up
asset entity required rig.media.asset_ref of the compiled file
weight float optional Optional. 100-900; absent = 400
style enumnormal · italic optional Optional. normal / italic. Absent = normal

Named compiled face for a canvas run. Format when present.

This is @font-face: a family name plus a file. The file is a rig.media.asset_ref (kind font). An editable UFO source stays rig.font.face.

A rig.media.text font points at the asset entity (or at this entity when both components share it). Decode and glyph caches stay fulfillment.

JSON Schema

Resolves at https://rig.works/schemas/rig.media.font_face.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.media.font_face.schema.json",
  "title": "rig.media.font_face",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "family": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "asset": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "weight": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "style": {
      "type": "string",
      "enum": [
        "normal",
        "italic"
      ]
    }
  },
  "required": [
    "family",
    "asset"
  ],
  "x-rig-maturity": "stable"
}

Seen in

text-path.json