# How to make sure that all fonts are loaded before to start BABYLON.js?

**URL:** <https://forum.babylonjs.com/t/how-to-make-sure-that-all-fonts-are-loaded-before-to-start-babylon-js/3127>\
**Category:** Questions\
**Created:** [May 10, 2019, 11:50am UTC](https://forum.babylonjs.com/t/how-to-make-sure-that-all-fonts-are-loaded-before-to-start-babylon-js/3127 "2019-05-10T11:50:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nodragem](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Nodragem](https://forum.babylonjs.com/u/Nodragem)\
**Post date:** [May 10, 2019, 4:42pm UTC](https://forum.babylonjs.com/t/how-to-make-sure-that-all-fonts-are-loaded-before-to-start-babylon-js/3127/3 "2019-05-10T16:42:26Z")

</div>

Please don’t use domain expert’s abbreviations, took me 30min to find out that you mean adt = AdvancedDynamicTextures ^^.

So here is the solution I came up with, using FontFaceObserver:

```auto
async load(){
        // @import url('https://fonts.googleapis.com/css?family=Kalam|Mali:400,700|Patrick+Hand');
        await Promise.all([
            new FontFaceObserver('Mali', {weight: 400}).load(),
            new FontFaceObserver('Mali', {weight: 700}).load(),
            new FontFaceObserver('Kalam').load(),
            new FontFaceObserver('Patrick Hand').load()
          ]).then(() => {
            console.log('Output Sans family has loaded.');
          });
    }

```

Then I create my menu.

I tried without the `await` and adding `this.UIRoot.markAsDirty();` in the `.then()` but that did not work: one of the text was not updated!

---

_[View the full topic](https://forum.babylonjs.com/t/how-to-make-sure-that-all-fonts-are-loaded-before-to-start-babylon-js/3127)._
