Skip to content

High level text library for winit/wgpu

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

kekelp/textslabs

Repository files navigation

Apache 2.0 or MIT license. Documentation for the main branch

textslabs is an experimental high level text library, with the goal to allow any winit/wgpu program to have full-featured text and text editing with minimal integration effort.

This library is based on parley, which does most of the hard technical work. textslabs manages collections of TextBox and TextEdit objects, keeps track of changes and does relayouts and rerenders when necessary, implements interactive selecting and editing, integrates accessibility, etc.

It also includes an atlas GPU renderer to render the text on the screen.

See the examples in the repository, starting with minimal.rs and full.rs, to see how the library can be used. The documentation for the main branch has more information, including a high level overview of the library and how to use it.

Screenshots

Screenshot of the "full" example: Screenshot of the "full" example

Windows Narrator narrating text in the "accessibility" example:

accessibility.mp4

About

High level text library for winit/wgpu

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published