Laurenz
Laurenz
Closing due to inactivity. Feel free to reopen if you still want to work on this!
It just tried it and while it compiles fine on WASM, it will panic with `time not implemented on this platform`(for the target `wasm32-unknown-unknown`). It might work on the `wasm32-wasi`...
Typically, in TeX hyphenation patterns the digits handle the priority among the patterns (see the [blog post on hypher](https://laurmaedje.github.io/posts/hypher/)). I don't think that this automatically implies a _rating_ of the...
> I'm starting to think that perhaps the real solution to the problem is to extend fontdb is to introduce a Source type that allows the user to define how...
### Functionality Regarding functionality, I think this PR mostly works as-is, the only problem is that the `database(&self) -> &Database` method is incompatible with interior mutability (because the `Ref` can't...
I used interior mutability for that, which requires the whole dance with `with_database` and dynamic dispatch. If usvg can just provide a mutable reference instead that'd be much better. I...
> I do not understand how it would work. Can you provide an example? See [my branch of resvg](https://github.com/laurmaedje/resvg/blob/c11f38e116dacf2cc7972b52e65c368fdb14313d/crates/usvg/src/text/mod.rs#L36) and [my linked implementation in Typst](https://github.com/typst/typst/blob/d51cfadb5f9a75c1f0877b86eeef2a08ee115893/crates/typst/src/visualize/image/svg.rs#L104). It's really just a `RefCell`...
I see now. That makes sense. I think `Arc` in `Options` could work out nicely and the deep-copy case would really only be hit when (a) sharing a db across...
@RazrFalcon I have a working implementation of the Arc-approch on [this branch](https://github.com/RazrFalcon/resvg/compare/master...laurmaedje:resvg:arc-database). I implemented it exactly like `ImageHrefResolver`. I also added lifetimes so that it's possible to implement these providers...
If we can come up with a good design, I'm open to it.