---
title: "InlineStyleSettings"
canonical_url: "https://www.nutrient.io/api/python/settings/vision/advanced/inline-style-settings/"
md_url: "https://www.nutrient.io/api/python/settings/vision/advanced/inline-style-settings.md"
last_updated: "2026-10-26T16:51:00.819Z"
description: "Settings for InlineStyle. Values fall back through three levels: document → SDK → built-in default."
---

Settings for InlineStyle. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

**Tags:** `Vision`, `Advanced`

```python

from nutrient_sdk import InlineStyleSettings

```

## Construction

`InlineStyleSettings` is accessed through a [`Document`](/api/python/document/) instance for per-document overrides, or via [`SdkSettings`](/api/python/settings/document/sdk-settings/) for SDK-wide defaults.

```python

# Per-document override

with Document.open("input.pdf") as doc:
    settings = doc.settings.inline_style_settings
    settings.some_field = new_value          # mutate fields directly

# SDK-wide default (applies to all documents)

SdkSettings.inline_style_settings.some_field = new_value

```

Settings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — `doc.settings.inline_style_settings = other_settings` is rejected.

## Properties

### diagnostics_path

```python

@property
def diagnostics_path(self) -> str

@diagnostics_path.setter
def diagnostics_path(self, value: str) -> None

```

Absolute path of a JSON-lines file that receives per-word typography diagnostics (candidate geometry, the model's outputs, active execution provider). Diagnostics are off when empty.

**Type:** `str`

**Default:** `string.Empty`

---

### glyph_extents_path

```python

@property
def glyph_extents_path(self) -> str

@glyph_extents_path.setter
def glyph_extents_path(self, value: str) -> None

```

Absolute path of a local glyph-extent table: the vertical ink extents of the characters of the fonts the model names. With it, a word's point size blends the model's estimate with the size its ink height gives in the font its paragraph is recognized as; without it, the model's estimate is kept.

**Type:** `str`

**Default:** `string.Empty`

---

### model_path

```python

@property
def model_path(self) -> str

@model_path.setter
def model_path(self, value: str) -> None

```

Absolute path to a typography ONNX model that overrides the packaged production model. The model carries its own decoding rules in its metadata. Intended for qualification and benchmarking of candidate models; the override bypasses the production artifact checksum pinning.

**Type:** `str`

**Default:** `string.Empty`

---

### reference_mode

```python

@property
def reference_mode(self) -> InlineStyleReferenceMode

@reference_mode.setter
def reference_mode(self, value: InlineStyleReferenceMode) -> None

```

Reference strategy used when classifying inline styles.

**Type:** [`InlineStyleReferenceMode`](/api/python/enums/inline-style-reference-mode/)

**Default:** `InlineStyleReferenceMode.Nearest`

---

### thresholds_path

```python

@property
def thresholds_path(self) -> str

@thresholds_path.setter
def thresholds_path(self, value: str) -> None

```

Absolute path to a JSON file of style thresholds (`style_on`) and calibration temperatures (`temperature`), seven values each in label order, that replace the ones in the model's metadata. Ignored unless `model_path` is set.

**Type:** `str`

**Default:** `string.Empty`

---

---

## Related pages

- [Advanced](/api/python/settings/vision/advanced.md)
- [Per-document override](/api/python/settings/vision/advanced/ai-augmenter-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/ai-processing-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/anthropic-api-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/claude-api-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/content-extraction-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/custom-vlm-api-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/deskew-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/document-layout-json-export-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/finalizer-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/form-labeling-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/form-recognition-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/form-vlm-connection-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/form-vlm-fallback-connection-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/google-api-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/handwriting-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/inference-layout-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/local-ai-processing-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/local-vlm-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/ocr-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/omr-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/open-ai-api-endpoint-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/open-ai-languages-detection-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/open-ai-picture-alt-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/pp-text-det-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/pp-text-rec-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/preprocessing-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/reading-order-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/segmenter-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/table-recognition-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/vision-acceleration-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/vision-descriptor-settings.md)
- [Per-document override](/api/python/settings/vision/advanced/words-detection-settings.md)

