Dave Pagurek
Dave Pagurek
Looks like this doesn't happen for me on Safari 18.2, but does for @wagedu in 18.4.
One option for right now is to use [`createImg`](https://p5js.org/reference/p5/createImg/) to create a DOM element instead of `loadImage` (aside: we need to fix the reference example for that 😬) You can...
Thanks @Harsh16gupta! Before assigning this one to someone, we need to do a bit of research to figure out specifics on how to proceed -- do feel free to start...
We actually already await `document.fonts.ready` here: https://github.com/processing/p5.js/blob/60ef55ed941b131b7d81ce060c7d46185bf1d78c/src/type/p5.Font.js#L1065 I also [tried waiting for `document.fonts.load` in my WIP WebGPU mode PR](https://github.com/processing/p5.js/pull/8179/files#diff-39b60656d2f7231fc9c24fd8ff95ec49bac2c487d92e4dad01f58696386a8047R1068) while working on font support there, but that doesn't help this...
Thanks @Homaid, what did you pass in to `load()`? My initial test didn't specify a given weight so it made sense that that wouldn't necessarily work. Did you try requesting...
If you manually add something to the DOM first, like a `Test`, does that work? If that works, going on the idea that we can make a `p5.font.waitFor(...)` function, that...
Thanks for testing that out @Homaid! Are you interested in making that function and updating the test?
oh also one other question, for @dhowe too: since in the CSS file case we'd need users to specify exactly what font usage they want in order to get a...
Are there any cases where calling this would be necessary other than if you've loaded a CSS font? If not, maybe we could include CSS in the name somewhere to...
@dhowe more than just weight I think -- looking at a google font file as an example, e.g. https://fonts.googleapis.com/css2?family=Sniglet:wght@400;800&display=swap, there are different fonts that could be loaded based on both...