---
title: "text.fonts: Fonts in Document — Vector kit command — Kition"
description: "Answers the fonts the document's type uses, with how they resolve (exact, substitute, missing) and missing glyphs."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.fonts"
---

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

# text.fonts

**Fonts in Document.** Answers the fonts the document's type uses, with how they resolve (exact, substitute, missing) and missing glyphs.

- 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 |  |

## Call through vector_run

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

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



```json
{
  "type": "array"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "selectionOnly": {
      "type": "boolean"
    }
  },
  "returns": "[{family, style, runs, objects, missing, status: exact|substitute|missing, resolved: {family, style}, missingGlyphs, version?: the installed version the type names (when it names one)}] sorted by name. A font is found by any of its names (ヒラギノ角ゴシック = Hiragino Sans) among the loaded and installed fonts; substitute: the family is there but not the style (resolved names the stand-in); missing: the family is unknown (the fallback family stands in); missingGlyphs: characters of its text the resolved font lacks (drawn by a fallback font); noGlyph: those no font here has (not drawn)",
  "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).
