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
First of all, this project is great in my program. But I ran into some problems, as shown in the link below, and I'm not sure why woff2 can be loaded, but it won't load in my node program. And got an error.
[2024-10-23T06:38:42Z WARN fontdb] Failed to load a font face 0 from '/Users/admin/workspace/assets/fonts/EuclidCircularA/EuclidCircularA-Bold.woff2' cause malformed font.
I looked at the loading process in detail.
it likes: resvg-js -> resvg -> fontdb -> ttf-parser
Then I see that ttf-paser mentions that only TrueType, OpenType, and AAT are supported.
First of all, this project is great in my program. But I ran into some problems, as shown in the link below, and I'm not sure why woff2 can be loaded, but it won't load in my node program. And got an error.
https://github.com/yisibl/resvg-js?tab=readme-ov-file#browser
log:
I looked at the loading process in detail.
it likes: resvg-js -> resvg -> fontdb -> ttf-parser
Then I see that ttf-paser mentions that only TrueType, OpenType, and AAT are supported.
As you can see in the code: https://github.com/RazrFalcon/ttf-parser/blob/bee14b10c19551bd3cc13257ebcaa41188f2e60d/src/lib.rs#L138
Then I saw an issue in the ttf-parser repository.
Obviously, the underlying dependencies don't support woff2 now
The text was updated successfully, but these errors were encountered: