# Javascript: InputFormat.getSupportedFontSizes Method

> Gets an array of strings specifying all possible font sizes for the font at the text input position. If the font is free scalable, standard sizes are returned. The return value is the list of possible font sizes. Null is returned, if the specified font is not supported or if text is selected and the selection contains several different fonts.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: InputFormat.getSupportedFontSizes Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontsizes-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontsizes-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontsizes-method/llms-full.txt

---

## On This Page

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

---

## Nearby

- **Previous:** [Javascript: InputFormat.getSupportedFontFamilies Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontfamilies-method/llms.txt)
- **Next:** [Javascript: InputFormat.getSupportedUnderlineStyles Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedunderlinestyles-method/llms.txt)
