Open RazrFalcon opened 2 years ago
We have used woff2-rs in our product, which may not be perfect, but is basically usable.
also interested in this as a feature
@RazrFalcon would you accept an implementation that uses the woff2-rs
crate?
Or should we rather work towards adding support in ttf-parser?
Yes, that's a good start. The only issue with woff2-rs
is thiserror
...
Note that we have to rewrite fontdb
handling first, because usvg
accepts a non-mutable reference. We would have to populate fontdb
with embedded fonts and then remove those fonts after usvg
is finished.
I'm not even sure if we're capable of parsing @font-face
at all.
If you have any ideas - I'm interested in hearing them.
As always, there is nothing simple when it comes to SVG.
I'm not even sure if we're capable of parsing @font-face at all.
How so?
Because we use simplecss
and it doesn't support at-rules.
Right...
+1
Requires WOFF/WOFF2 support first...