This error:
should go away if you restart Processing and then when it’s started again, switch to p5.js mode.
As mentioned, the trick to getting this code up and running is loading the font, either using the current font of defining a new font and adding it to the folder where the “sketch.js” file lives.