Closed
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
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:
- Load the font with
font = await loadFont('http://davepagurek.com/stuff/montserrat-italic.woff')