See the Pen jzNMMx by NombreNombre (@NombreNombre) on CodePen.
This code is a short one to test different fonts using js.
To Start you must start with creating the function setup and the canvas.
Then you have to put this commands:
fill("#ED225D"); for the colour of the text
textFont('Arial'); for the font you will use
And
textSize(36); for the size of the text
And that is how to create a text font. Repeat the same commands changing the font name to another one for use it.