You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some woff fonts (not woff2, which we know isn't supported) aren't being read by Typr, and instead throw the error "pako is not defined". The actual error message is caught and silently handled, so you have to check "pause on caught exceptions" in your debugger to see it:
I've added a comment on a previous issue in Typr. Note also that google at least determines font format from the user-agent. While probably not advisable, at least in the core, we could force specific compatible formats by spoofing this only for font requests
Most appropriate sub-area of p5.js?
p5.js version
Latest dev-2.0
Web browser and version
Firefox
Operating system
MacOS
Steps to reproduce this
Some woff fonts (not woff2, which we know isn't supported) aren't being read by Typr, and instead throw the error "pako is not defined". The actual error message is caught and silently handled, so you have to check "pause on caught exceptions" in your debugger to see it:
Here's the woff file I'm testing on, which is the latin italic woff2 of Montserrat from here https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap and then converted manually to a woff: http://davepagurek.com/stuff/montserrat-italic.woff
Steps:
font = await loadFont('http://davepagurek.com/stuff/montserrat-italic.woff')
Snippet:
https://editor.p5js.org/davepagurek/sketches/AsxD8pcb0
The text was updated successfully, but these errors were encountered: