---
title: "text.fontList: Font List — Vector kit command — Kition"
description: "Answers the font families available to the kit (bundled, added and installed), by their canonical names for text.setStyle."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.fontList"
---

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

# text.fontList

**Font List.** Answers the font families available to the kit (bundled, added and installed), by their canonical names for text.setStyle.

- 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 |
| --- | --- | --- | --- |
| `family` | `string` | no |  |
| `selectionOnly` | `boolean` | no | read by the command beside its listed parameters |

## Call through vector_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `families` | `string[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "families": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "family": {
      "type": "string"
    },
    "selectionOnly": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{families: [names]} sorted: the bundled fonts, fonts added and the fonts installed on the system (none on the web), each the family's English (canonical) name for `text.setStyle` and documents (without the system's hidden families, whose names start with a dot; they still resolve by name). Preferences › Type › Show Font Names in English only changes the UI menu labels, not this list; with family: {family, styles: [names]} (upright styles by weight, then italics; an error when the family isn't available)",
  "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).
