# textToPoints - error loading

**URL:** https://discourse.processing.org/t/texttopoints-error-loading/17943
**Category:** p5.js
**Created:** [February 20, 2020, 12:36am UTC](https://discourse.processing.org/t/texttopoints-error-loading/17943 "2020-02-20T00:36:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bmehta](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bmehta](https://discourse.processing.org/u/bmehta)
#### Post date: [February 20, 2020, 12:36am UTC](https://discourse.processing.org/t/texttopoints-error-loading/17943/1 "2020-02-20T00:36:19Z")

</div>

I’m trying to use the textToPoints function: [https://p5js.org/reference/#/p5.Font/textToPoints](https://p5js.org/reference/#/p5.Font/textToPoints)

But keep getting the following error: \> _p5.js says: It looks like there was a problem loading your font. Try checking if the file path [assets/Mozer-SemiBold.otf] is correct, hosting the font online, or running a local server.[[https://github.com/processing/p5.js/wiki/Local-server](https://github.com/processing/p5.js/wiki/Local-server)]_

I have made sure that the font file is in the correct folder and used the preload function correctly. What am I missing?

```auto
let font;

function preload(){
    font = loadFont('assets/Mozer-SemiBold.otf');
}

```

Thanks for all your help!

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [February 22, 2020, 10:16pm UTC](https://discourse.processing.org/t/texttopoints-error-loading/17943/2 "2020-02-22T22:16:09Z")

</div>

> [@bmehta](#):
>
> Mozer-SemiBold.otf

Were you able to resolve this issue?

Is this happening with any / all fonts, such as the reference example (`assets/inconsolata.otf`) or is it just `assets/Mozer-SemiBold.otf`?
