tfachmann / typst-as-library

Simple demo that demonstrates how to use typst as a library in Rust
Apache License 2.0
19 stars 1 forks source link

panic when `fonts` dir is not present #4

Closed flxzt closed 2 weeks ago

flxzt commented 2 weeks ago

The crate currently panics here when no fonts dir is found.

I think it should search the system font paths as well, and maybe if nothing is found error out with a more descriptive message?

tfachmann commented 2 weeks ago

Yes, font handling should definitely be improved as it has been stated in #2 as well.

flxzt commented 2 weeks ago

oh sorry, I missed that.