servo / font-kit

A cross-platform font loading library written in Rust
Apache License 2.0
678 stars 100 forks source link

Split sources into a separate crate. #180

Open inodentry opened 3 years ago

inodentry commented 3 years ago

Many users just want a crate for discovering fonts on the system, not rendering or any of the other stuff font-kit provides. It would be great to use font-kit, but there are concerns about it being very heavyweight as a dependency.

Would you consider splitting off the font discovery / sources, into a separate crate? It is very useful functionality on its own.

It seems like the font discovery crate could be made significantly more lightweight compared to font-kit proper.

There is some interest in using it in Bevy, see this issue.

jdm commented 3 years ago

That sounds like it could be sensible. I would be willing to review a PR that did that.