---
title: "textStyle.list: List Text Styles — CAD kit command — Kition"
description: "Answers every text style with its font, height, width factor, flags and whether it is current."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/textStyle.list"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/cad/commands/textStyle.list](https://developer.kition.ai/docs/kits/cad/commands/textStyle.list)

# textStyle.list

**List Text Styles.** Answers every text style with its font, height, width factor, flags and whether it is current.

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

## Parameters

None.

## Call through cad_run

```text
cad_run {
  "path": "<file>.dxf",
  "steps": [{ "command": "textStyle.list" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `current` | `string` | no |  |
| `styles` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "current": {
      "type": "string"
    },
    "styles": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "annotative": {
            "type": "boolean"
          },
          "backwards": {
            "type": "boolean"
          },
          "bigFont": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "font": {
            "type": "string"
          },
          "height": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "oblique": {
            "type": "number"
          },
          "trueType": {
            "type": "boolean"
          },
          "upsideDown": {
            "type": "boolean"
          },
          "vertical": {
            "type": "boolean"
          },
          "widthFactor": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/cad-darwin-arm64@0.1.0 and the kit itself (cad_commands through @kition/cli@0.1.1, built from KitionAI/kition-cad@1ec542d).
