# Font size?

**URL:** <https://phaser.discourse.group/t/font-size/10769>\
**Category:** Phaser 3\
**Created:** [November 29, 2021, 9:41pm UTC](https://phaser.discourse.group/t/font-size/10769 "2021-11-29T21:41:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwana](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dwana](https://phaser.discourse.group/u/dwana)\
**Post date:** [November 29, 2021, 9:41pm UTC](https://phaser.discourse.group/t/font-size/10769/1 "2021-11-29T21:41:43Z")

</div>

I am wanting to change the size of font I am using. I can not work out a way that this is done. I have tried fontSize that I seen in the documentation here [Phaser 3 API Documentation - Namespace: Text](https://photonstorm.github.io/phaser3-docs/Phaser.Types.GameObjects.Text.html#.TextStyle)

This does not change my text though. My code is

```javascript
this.add.text (config.width / 2, config.height / 2 , 'score : 0', { fontFamily: 'CustomFont', fill: '#00ff00'});

```

Is it able to change the size of font in this code?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [November 29, 2021, 10:46pm UTC](https://phaser.discourse.group/t/font-size/10769/2 "2021-11-29T22:46:01Z")

</div>

`{ fontSize: 12 }` or `{ font: '12px CustomFont' }`.

---

<div class="post-metadata">

**Author:** ![dwana](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dwana](https://phaser.discourse.group/u/dwana)\
**Post date:** [November 29, 2021, 10:48pm UTC](https://phaser.discourse.group/t/font-size/10769/3 "2021-11-29T22:48:58Z")

</div>

> [@samme](#):
>
> ontSize: 12

Thank you my friend
