textToPoints - error loading

I’m trying to use the textToPoints function: 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]

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

let font;

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

Thanks for all your help!

1 Like

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?