I searched the forum, while there were several discussions around the topic, I was unable to find the answer I was looking for.
Is it possible to use Typekit or Adobe fonts at the canvas level inside of P5.js?
It seems that the CSS link provided by Adobe or Google fonts is intended for DOM elements and not for the p5.js
sketch.js (canvas). To use
textFont(), we need either a font file or a link to that font file (something like :
This 's a capture of Adobe font css, I put the
<link rel='stylesheet'>"....css"</link> into the index.html file. It doesn’t seem to have any effect on the canvas, I feel that I have to create a
DOM element to use the font. What’s your opinion ?
Thanks for your help.