---
title: "text.setFormat: Character / Paragraph — Vector kit command — Kition"
description: "Sets character and paragraph formats on type: kerning, baseline shift, scaling, rotation, underline, caps, position, indents, spacing and alignment."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.setFormat"
---

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

# text.setFormat

**Character / Paragraph.** Sets character and paragraph formats on type: kerning, baseline shift, scaling, rotation, underline, caps, position, indents, spacing and alignment.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `allCaps` | `boolean` | no |  |
| `baselineShift` | `number` | no | points |
| `burasagari` | `"none" \| "standard" \| "forced"` | no | Paragraph panel menu › Burasagari None/Regular/Force: an East Asian comma or full stop ending an area type line hangs outside it: when it doesn't fit, or always; new type: "standard" |
| `charAlign` | `"romanBaseline" \| "emBoxTop" \| "emBoxCenter" \| "emBoxBottom" \| "icfTop" \| "icfBottom"` | no | where characters smaller than the largest on their line line up with it |
| `composer` | `string` | no | like singleLine; one of several alternative parameters |
| `direction` | `"auto" \| "leftToRight" \| "rightToLeft"` | no | paragraph direction; auto: from each paragraph's first strong character |
| `emBoxTop` | `any` | no | leading measured baseline to baseline, or em box top to top; one of several alternative parameters |
| `end` | `integer` | no | 0 to 255 |
| `everyLine` | `any` | no | line breaking, Every-line by default; one of several alternative parameters |
| `firstLineIndent` | `number` | no |  |
| `hScale` | `number` | no | percent |
| `hyphenate` | `boolean` | no |  |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |
| `item` | `string` | no | read by the command beside its listed parameters |
| `kerning` | `number \| "auto"` | no |  |
| `kinsoku` | `"none" \| "hard" \| "soft"` | no | Kinsoku Set: Soft lets 々, ー and small kana start a line |
| `leadingModel` | `string` | no | like romanBaseline; one of several alternative parameters |
| `leftIndent` | `number` | no |  |
| `lineEndHalf` | `any` | no | Japanese punctuation spacing; one of several alternative parameters |
| `mojikumi` | `string` | no | like none; one of several alternative parameters |
| `position` | `"normal" \| "superscript" \| "subscript"` | no | sizes from Document Setup |
| `rightIndent` | `number` | no |  |
| `rotation` | `number` | no | degrees |
| `smallCaps` | `boolean` | no |  |
| `spaceAfter` | `number` | no | points; ±1296 |
| `spaceBefore` | `number` | no |  |
| `start` | `integer` | no | 0 to 255 |
| `strikethrough` | `boolean` | no |  |
| `target` | `string` | no | "object" (default) or "contents": the objects themselves, or what their groups and layers hold |
| `underline` | `boolean` | no |  |
| `vScale` | `number` | no | percent |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `allCaps`, `baselineShift`, `burasagari`, `charAlign`, `composer`, `direction`, `emBoxTop`, `end`, `everyLine`, `firstLineIndent`, `hScale`, `hyphenate`, `id`, `ids`, `item`, `kerning`, `kinsoku`, `leadingModel`, `leftIndent`, `lineEndHalf`, `mojikumi`, `position`, `rightIndent`, `rotation`, `smallCaps`, `spaceAfter`, `spaceBefore`, `start`, `strikethrough`, `target`, `underline`, `vScale`. vector_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": {
    "allCaps": {
      "type": "boolean"
    },
    "baselineShift": {
      "description": "points",
      "type": "number"
    },
    "burasagari": {
      "description": "Paragraph panel menu › Burasagari None/Regular/Force: an East Asian comma or full stop ending an area type line hangs outside it: when it doesn't fit, or always; new type: \"standard\"",
      "enum": [
        "none",
        "standard",
        "forced"
      ],
      "type": "string"
    },
    "charAlign": {
      "description": "where characters smaller than the largest on their line line up with it",
      "enum": [
        "romanBaseline",
        "emBoxTop",
        "emBoxCenter",
        "emBoxBottom",
        "icfTop",
        "icfBottom"
      ],
      "type": "string"
    },
    "composer": {
      "description": "like singleLine; one of several alternative parameters",
      "type": "string"
    },
    "direction": {
      "description": "paragraph direction; auto: from each paragraph's first strong character",
      "enum": [
        "auto",
        "leftToRight",
        "rightToLeft"
      ],
      "type": "string"
    },
    "emBoxTop": {
      "description": "leading measured baseline to baseline, or em box top to top; one of several alternative parameters"
    },
    "end": {
      "description": "0 to 255",
      "type": "integer"
    },
    "everyLine": {
      "description": "line breaking, Every-line by default; one of several alternative parameters"
    },
    "firstLineIndent": {
      "type": "number"
    },
    "hScale": {
      "description": "percent",
      "type": "number"
    },
    "hyphenate": {
      "type": "boolean"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "item": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "kerning": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "enum": [
            "auto"
          ],
          "type": "string"
        }
      ]
    },
    "kinsoku": {
      "description": "Kinsoku Set: Soft lets 々, ー and small kana start a line",
      "enum": [
        "none",
        "hard",
        "soft"
      ],
      "type": "string"
    },
    "leadingModel": {
      "description": "like romanBaseline; one of several alternative parameters",
      "type": "string"
    },
    "leftIndent": {
      "type": "number"
    },
    "lineEndHalf": {
      "description": "Japanese punctuation spacing; one of several alternative parameters"
    },
    "mojikumi": {
      "description": "like none; one of several alternative parameters",
      "type": "string"
    },
    "position": {
      "description": "sizes from Document Setup",
      "enum": [
        "normal",
        "superscript",
        "subscript"
      ],
      "type": "string"
    },
    "rightIndent": {
      "type": "number"
    },
    "rotation": {
      "description": "degrees",
      "type": "number"
    },
    "smallCaps": {
      "type": "boolean"
    },
    "spaceAfter": {
      "description": "points; ±1296",
      "type": "number"
    },
    "spaceBefore": {
      "type": "number"
    },
    "start": {
      "description": "0 to 255",
      "type": "integer"
    },
    "strikethrough": {
      "type": "boolean"
    },
    "target": {
      "description": "\"object\" (default) or \"contents\": the objects themselves, or what their groups and layers hold",
      "type": "string"
    },
    "underline": {
      "type": "boolean"
    },
    "vScale": {
      "description": "percent",
      "type": "number"
    }
  },
  "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).
