> For the complete documentation index, see [llms.txt](https://learnpython.strivemath.com/p5-python-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnpython.strivemath.com/p5-python-web/reference/text/textsize.md).

# textSize()

This function **sets or gets the current font size**. This size will be used in all subsequent calls to the [text()](/p5-python-web/reference/text/text.md#description) function.

```
textSize(number)
```

| Input  | Description                    | Default |
| ------ | ------------------------------ | ------- |
| number | The size of the text in pixels | 10      |

## Examples  &#x20;

```python
    textSize(10)
    text("ABCD", 15, 25)

    textSize(20)
    text("ABCD", 15, 50)

    textSize(30)
    text("ABCD", 15, 75)
```

![](/files/9RWgbz9ujsMtu8XIUs3I)

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
