Translating Processing to P5js

You have this:

  cooper = loadFont('CooperHewitt-Bold');

Does the name of the file have an extension, such as .otf, and is the file in the folder or directory with your program?

Edited on January 24, 2021 to clarify the question relating to the location of the file.

1 Like