Update README

This commit is contained in:
grovesNL 2022-10-28 01:16:33 -02:30 committed by Josh Groves
parent 14499e4659
commit 7eb4d41c25
2 changed files with 1 additions and 3 deletions

View file

@ -9,7 +9,6 @@ license = "MIT OR Apache-2.0 OR Zlib"
[dependencies]
wgpu = "0.14.0"
fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" }
etagere = "0.2.6"
cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "a1f7675" }

View file

@ -16,9 +16,8 @@
This crate provides a simple way to render 2D text with [`wgpu`](https://github.com/gfx-rs/wgpu/) by:
- rasterizing glyphs (with [`fontdue`](https://github.com/mooman219/fontdue/))
- shaping/calculating layout/rasterizing glyphs (with [`cosmic-text`](https://github.com/pop-os/cosmic-text/))
- packing the glyphs into texture atlas (with [`etagere`](https://github.com/nical/etagere/))
- calculate layout for text (with [`fontdue`](https://github.com/mooman219/fontdue/))
- sampling from the texture atlas to render text (with [`wgpu`](https://github.com/gfx-rs/wgpu/))
To avoid extra render passes, rendering uses existing render passes (following the middleware pattern described in [`wgpu`'s Encapsulating Graphics Work wiki page](https://github.com/gfx-rs/wgpu/wiki/Encapsulating-Graphics-Work).