# textSize()

This function **sets or gets the current font size**. This size will be used in all subsequent calls to the [text()](https://learnpython.strivemath.com/p5-python-web/reference/text#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)
```

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FyuHuLYpMjx2jArRxlgEe%2Fimage.png?alt=media\&token=3b5974ee-46f5-407b-a666-b44690b8c858)

{% 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 %}
