# Javascript: FormattingStyle.setCapitals Method

> Sets values specifying wheather lowercase letters are displayed with capital letters. Lowercase letters are displayed either with capital letters of the same size or with capital letters which have a smaller size. The smaller size is either the size of the lowercase 'x' (petite caps) or the size of the lowercase 'x' + 10% (small caps).

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: FormattingStyle.setCapitals Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/#syntax)
- [Parameters](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/#parameters)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/#examples)

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setBold Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setbold-method/llms.txt)
- **Next:** [Javascript: FormattingStyle.setCharacterScaling Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcharacterscaling-method/llms.txt)
