The p5js library's loadFont function does not seem to work for me?

21 views Asked by At

I even copied the exact code from the reference and pasted into a new project and it just always tells me that the file path is incorrect.

I tried using the following code:

`function preload() {font = loadFont('MightySouly-lxggD.ttf')}`

to load a font I downloaded to use, but it instead gave an error saying the file path may be incorrect. The same result occurred when I used the exact code from the reference page showing how to use loadFont().

0

There are 0 answers