# Javascript: Selection.shrinkFont Method

> Decreases the font size of each font contained in the current text selection. If no text is selected, this method decreases the font size at the text input position.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: Selection.shrinkFont Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/shrinkfont-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/shrinkfont-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/selection/shrinkfont-method/llms-full.txt

---

## On This Page

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

---

## Nearby

- **Previous:** [Javascript: Selection.setUnderline Method](https://docs.textcontrol.com/ds-server/reference/javascript/selection/setunderline-method/llms.txt)
- **Next:** [SelectionBounds Object](https://docs.textcontrol.com/ds-server/reference/javascript/selectionbounds/llms.txt)
