We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi!
There is known problem about not rendering otf fonts in Chrome?!
I created some web pages that are rendered very well in Firefox but not at all in Chrome. On the network tab appears the loading of main page, of the p5.js library but no font appears.
That's my question.
I could provide the js snippet of the page that works in Firefox, but not in Chrome.
Thanks for your understanding,
Kind regards,
Radu
Answers
Is this p5.js?
Yes, go ahead and provide it.
@radumir - Are you running the code locally (i.e. opening the index.html file directly from your PC) or on a test server? What does the browser console say? Firefox is known to be a little more flexible when loading cross domain resources when running local files. The console should definitely show if this is the issue...
Cross-domain permission access (CORS) got nothing to do whether the ".html" is running over
http://
orfile://
schemes under Firefox. They're treated the same on Firefox-family browsers. :)>-@jeremydouglass
Yes, it is p5.js.
I solved the problem in the meantime by simply inspecting the code before I send it to you. I introduced by speed an oddity having a sequence of the type ... that firefox accepted but was gracefully ignored by chrome. When I put the inside everything looks ok in chrome too.
Thanks!
Radu