# Using Webfonts

**URL:** <https://phaser.discourse.group/t/using-webfonts/5758>\
**Category:** Phaser 3\
**Created:** [April 4, 2020, 6:15am UTC](https://phaser.discourse.group/t/using-webfonts/5758 "2020-04-04T06:15:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skeletron](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Skeletron](https://phaser.discourse.group/u/Skeletron)\
**Post date:** [April 4, 2020, 6:15am UTC](https://phaser.discourse.group/t/using-webfonts/5758/1 "2020-04-04T06:15:44Z")

</div>

Hi,

I have been reading various examples online, but I am having difficulty understanding how I use a web font in a scene. For example, my scene class looks as below, but the font just seems to display as default “times-new-roman”. Can someone advise on the simplest way to do this?

```
var StartScreen = new Phaser.Class({
    Extends: Phaser.Scene,
    initialize:
    function StartScreen() {
        Phaser.Scene.call(this, { key: 'StartScreen' })
    },

    preload: function ()
    {
        this.load.script('webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js');
    },

    create: function ()
    {

        WebFont.load({
            google: {
                families: ['Freckle Face', 'Finger Paint', 'Nosifer']
            },
        });
        this.add.text(260, 440, 'Hello World!', { fontFamily: 'Finger Paint', fontSize: 20, color: '#ffffff' });
    }

});
```

---

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [April 4, 2020, 7:06am UTC](https://phaser.discourse.group/t/using-webfonts/5758/2 "2020-04-04T07:06:21Z")

</div>

Look at the [Custom Webfont](http://labs.phaser.io/edit.html?src=src/game%20objects/text/static/custom%20webfont.js) example. You cannot use a webfont until it has loaded.

---

<div class="post-metadata">

**Author:** ![Skeletron](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Skeletron](https://phaser.discourse.group/u/Skeletron)\
**Post date:** [April 4, 2020, 2:20pm UTC](https://phaser.discourse.group/t/using-webfonts/5758/3 "2020-04-04T14:20:03Z")

</div>

@Telinc1 Many thanks, that explained it to me, got it working now.
