---
title: "prefs.set: Preferences — Layout kit command — Kition"
description: "Sets application preferences: hidden characters, typographer's quotes, polygon sides, stroke scaling and more."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/prefs.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/prefs.set](https://developer.kition.ai/docs/kits/layout/commands/prefs.set)

# prefs.set

**Preferences.** Sets application preferences: hidden characters, typographer's quotes, polygon sides, stroke scaling and more.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `absolutePageNumbers` | `boolean` | no |  |
| `autocorrect` | `boolean` | no | read by the command beside its listed parameters |
| `autocorrectList` | `any[]` | no | read by the command beside its listed parameters |
| `dimensionsIncludeStroke` | `boolean` | no |  |
| `favoriteFonts` | `string[]` | no |  |
| `highlightCustomTracking` | `boolean` | no |  |
| `highlightHj` | `boolean` | no |  |
| `highlightKeeps` | `boolean` | no |  |
| `highlightSubstitutedFonts` | `boolean` | no |  |
| `polygonSides` | `integer` | no |  |
| `recoveryMinutes` | `number` | no | read by the command beside its listed parameters |
| `richBlackOutput` | `boolean` | no |  |
| `scaleStrokes` | `boolean` | no |  |
| `showAddedText` | `boolean` | no | read by the command beside its listed parameters |
| `showFontNamesInEnglish` | `boolean` | no |  |
| `showHiddenCharacters` | `boolean` | no |  |
| `showNoteAnchors` | `boolean` | no | read by the command beside its listed parameters |
| `showTextThreads` | `boolean` | no | read by the command beside its listed parameters |
| `smartTextReflow` | `boolean` | no | read by the command beside its listed parameters |
| `starInset` | `number` | no |  |
| `story` | `integer` | no | read by the command beside its listed parameters |
| `transformationsAreTotals` | `boolean` | no |  |
| `typographersQuotes` | `boolean` | no |  |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "prefs.set" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `absolutePageNumbers`, `autocorrect`, `autocorrectList`, `dimensionsIncludeStroke`, `favoriteFonts`, `highlightCustomTracking`, `highlightHj`, `highlightKeeps`, `highlightSubstitutedFonts`, `polygonSides`, `recoveryMinutes`, `richBlackOutput`, `scaleStrokes`, `showAddedText`, `showFontNamesInEnglish`, `showHiddenCharacters`, `showNoteAnchors`, `showTextThreads`, `smartTextReflow`, `starInset`, `story`, `transformationsAreTotals`, `typographersQuotes`. layout_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": {
    "absolutePageNumbers": {
      "type": "boolean"
    },
    "autocorrect": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "autocorrectList": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "dimensionsIncludeStroke": {
      "type": "boolean"
    },
    "favoriteFonts": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "highlightCustomTracking": {
      "type": "boolean"
    },
    "highlightHj": {
      "type": "boolean"
    },
    "highlightKeeps": {
      "type": "boolean"
    },
    "highlightSubstitutedFonts": {
      "type": "boolean"
    },
    "polygonSides": {
      "type": "integer"
    },
    "recoveryMinutes": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "richBlackOutput": {
      "type": "boolean"
    },
    "scaleStrokes": {
      "type": "boolean"
    },
    "showAddedText": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "showFontNamesInEnglish": {
      "type": "boolean"
    },
    "showHiddenCharacters": {
      "type": "boolean"
    },
    "showNoteAnchors": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "showTextThreads": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "smartTextReflow": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "starInset": {
      "type": "number"
    },
    "story": {
      "description": "read by the command beside its listed parameters",
      "type": "integer",
      "x-khp-types": [
        "Story"
      ]
    },
    "transformationsAreTotals": {
      "type": "boolean"
    },
    "typographersQuotes": {
      "type": "boolean"
    }
  },
  "returns": "all application preferences",
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
