We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Dear people,
I am new in p5js and I have problems loading a font. If I load it in the p5js editor, its working fine. But if I try it in the browser, it doesn't show up. Maybe somebody knows how to fix that! Thanks a lot!
Answers
Only Firefox-based browsers can loadFont() when running as a local file. For further tips, go here:
https://forum.Processing.org/two/discussion/13820/unable-to-load-any-files-image-font-etc
thanks! But in this discussion I can't fine anything about how to use online fonts ?
As I had mentioned: If you need to test your sketch locally w/ loadFont(), either use a Firefox-based browser or create a local server: https://GitHub.com/processing/p5.js/wiki/Local-server
An online example:
http://GoToLoop.GitHub.io/p5.js/
https://GitHub.com/GoToLoop/p5.js/blob/gh-pages/index.html