diff --git a/Cargo.toml b/Cargo.toml index abdd4eb..f475145 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/README.md b/README.md index 97f035e..cc5f99a 100644 --- a/README.md +++ b/README.md @@ -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).