Expand description
wgpu-text is a wrapper over glyph-brush for simpler text rendering in wgpu.
This project was inspired by and is similar to wgpu_glyph, but has additional features and is simpler. Also there is no need to include glyph-brush in your project.
Some features are directly implemented from glyph-brush so you should go trough Section docs for better understanding of adding and managing text.
If you want to learn about GPU texture caching see caching behaviour.
- Look trough examples.
Modules
Contains all needed structs and enums for inserting and styling text. Directly taken from glyph_brush.
Structs
Builder for TextBrush.
Marks scissor region and can test how to fit itself inside the specified window dimensions
to avoid wgpu related rendering errors.
Wrapper over glyph_brush::GlyphBrush. Draws text.