For a coding challenge, I need a font to be loaded into p5. The challenge, however, can only be coded using codepen. Due to this (and my lack of codepen pro), I needed to find an alternative to loading a font. I decided to host it on my website, and upon trying the link in the loadFont()
function, it would not load. My pen is included below.
https://codepen.io/arman311/pen/XobKBL
Edit: I tried @Elliot-Robson's fix, now I get this error:
The page at 'https://codepen.io/arman311/pen/XobKBL' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '.../fonts/Roboto-Regular.ttf'. This request has been blocked; the content must be served over HTTPS.