Motion kit command

text.fonts

List Fonts

The installed font families (bundled and system), with their styles, where each comes from and its name in the font's own language. `query` keeps the families whose English or native name contains it (case-insensitive); `rescan` first looks for fonts installed since the app started.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of text.fonts
NameTypeRequiredDescription
querystringno
rescanbooleanno

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "text.fonts" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: query, rescan. motion_run answers the step’s result in completed[i].result.

Result

Result of text.fonts
NameTypeRequiredDescription
addedintegerno
countintegerno
familiesobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "added": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "families": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "family": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "styles": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "query": {
      "type": "string"
    },
    "rescan": {
      "type": "boolean"
    }
  },
  "returns": "{count, families: [{family, styles, origin: bundled|system|user, nativeName?}], added} (rescan picks up fonts installed since launch)",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.