---
title: "TextStyle"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/textstyle/"
---

# TextStyle

```ts
type TextStyle = Omit<SetTextStyleJs, "page" | "runs">;
```

Defined in: [packages/sdk/src/types.ts:1197](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L1197)

The fields of a `setTextStyle` op besides the page and the runs, which [DocumentContent.setTextStyle](/reference/sdk/interfaces/documentcontent.md#settextstyle)
takes: `font`, `size` (points), `color`, `bold`, `italic`, `underline`, `baseline`, `align`
and `lineSpacing`. Each is optional and changes only what it names.

## Since

0.7.0
