StarArawn / kayak_ui

Other
469 stars 50 forks source link

Support Multiple Styles within a TextWidgetBundle #212

Open madamc opened 1 year ago

madamc commented 1 year ago

Currently in Bevy, it is possible to render styles within a Text object. The Text struct has a 'sections' field that is an array of TextSection, which has a string and a style associated with it. This project demonstrates using the Text struct to animate the styles within the Text, allowing for a typewriter effect. There are likely other use cases for animating and rendering multiple styles in this manner (animated rainbow text, text segments emphasizing key words, etc.).

I think developers would like to leverage the features of Kayak UI along with the above capability.

StarArawn commented 1 year ago

I would like to eventually start using the Cosmic Text rust library: https://github.com/pop-os/cosmic-text

This should help solve some of these issues.