servo / font-kit

A cross-platform font loading library written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split sources into a separate crate.

inodentry opened this issue · comments

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.

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