---
title: "textStyle.open: Text Style... — CAD kit command — Kition"
description: "Creates or changes a text style: font, big font, height, width factor, oblique angle, flags, annotative, and optionally makes it current."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/textStyle.open"
---

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

# textStyle.open

**Text Style....** Creates or changes a text style: font, big font, height, width factor, oblique angle, flags, annotative, and optionally makes it current.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `annotative` | `boolean` | no |  |
| `backwards` | `boolean` | no |  |
| `bigFont` | `string` | no |  |
| `current` | `boolean` | no |  |
| `font` | `string` | no |  |
| `height` | `number` | no |  |
| `name` | `string` | no |  |
| `oblique` | `number` | no |  |
| `upsideDown` | `boolean` | no |  |
| `vertical` | `boolean` | no |  |
| `widthFactor` | `number` | no |  |

## Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `annotative`, `backwards`, `bigFont`, `current`, `font`, `height`, `name`, `oblique`, `upsideDown`, `vertical`, `widthFactor`. cad_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "annotative": {
      "type": "boolean"
    },
    "backwards": {
      "type": "boolean"
    },
    "bigFont": {
      "type": "string"
    },
    "current": {
      "type": "boolean"
    },
    "font": {
      "type": "string"
    },
    "height": {
      "type": "number"
    },
    "name": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "TextStyle"
      ]
    },
    "oblique": {
      "type": "number"
    },
    "upsideDown": {
      "type": "boolean"
    },
    "vertical": {
      "type": "boolean"
    },
    "widthFactor": {
      "type": "number"
    }
  },
  "returns": "styles",
  "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).
