---
title: "text.missingFonts: Missing Fonts — Vector kit command — Kition"
description: "Answers the fonts the document's type and symbols use that aren't available as named, with what they resolve to."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.missingFonts"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/text.missingFonts](https://developer.kition.ai/docs/kits/vector/commands/text.missingFonts)

# text.missingFonts

**Missing Fonts.** Answers the fonts the document's type and symbols use that aren't available as named, with what they resolve to.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `selectionOnly` | `boolean` | no | read by the command beside its listed parameters |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "text.missingFonts" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | `number` | no |  |
| `fonts` | `any[]` | no |  |
| `fontsNextToDocument` | `any` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "fonts": {
      "type": "array"
    },
    "fontsNextToDocument": {}
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "selectionOnly": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{fonts: [{family, style, status: missing|substitute, resolved: {family, style}}] (sorted by name; at most 1000), count, fontsNextToDocument?} the fonts the active document's type uses, in its layers and its symbols, that aren't available as named: missing (the family is unknown and the fallback family stands in) or substitute (the family is there but not the style; resolved names the stand-in), as text.fonts says. CSS generic families such as sans-serif and names longer than 256 bytes are left out. fontsNextToDocument: the Fonts folder next to the saved document (File › Package writes it), when there is one and a search may start there (not in another app's folders, such as a mail app's attachments)",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
