> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/setfontstyle.md).

# setFontStyle

Sets the font style of a control.

### Parameters

1. controlId
2. fontStyle - use one of these: "italic", "normal"

### Example Usages

*Set to italic*

```javascript
   brixxApi.setFontStyle("myControl", "italic");
```

*Set to normal*

```javascript
   brixxApi.setFontStyle("myControl", "normal");
   brixxApi.setFontStyle("myControl"); // you can skip param2 if you want to set back to normal
```
