SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
230 stars 21 forks source link

Allow hooking text rendering #17

Open LPGhatguy opened 2 years ago

LPGhatguy commented 2 years ago

It would be great to let users replace yakui's text rendering. I think a clever way that we could do this is by moving yakui's text code into a new crate, like yakui-text, and then let people use Cargo to patch-replace it.

msparkles commented 3 months ago

As per #179, we've figured that textboxes and text widgets are extremely dependent on the text backend! Ideally you'd just replace the widgets entirely yourself

We sure should move it to a separate crate, though, that should be the way to go in the future

msparkles commented 3 months ago

Perhaps not to patch it but just have a separate crate that has text widgets? During the cosmic_text PR we barely had to touch the wgpu side of things, yakui's rendering frontend is apparently enough for all that texts need?