Closed promentol closed 2 months ago
Here is screenshot of stack trace
hey @promentol, good catch! Thanks for reporting this. I can indeed reproduce it, and can confirm this is a bug. We should be able to make a fix for this shortly.
@michielvandergeest thank you for commenting
I already made pull request which fix it. While it is a small change, it is easy to reproduce, just render with canvas instead of webgl, and it will throw this error.
Het @promentol, thanks a lot. That looks pretty much like the approach I was gonna take.
I'll do some due diligence testing, but this looks good. So you can expect this fix in the next release.
Thanks again
Released in 1.5.0
when setting renderMode to 'canvas', and deleting all sdf fonts, it still tries to load SDF fonts, and throws error
After debugging, inside renderer
fontEngines
is[class SdfTextRenderer, class CanvasTextRenderer]
There are many devices which don't support webgl but support canvas, like PS5, or FireTV stick version, canvas rendering is essential.
Thanks