8 releases (breaking)

new 0.7.0 Nov 5, 2024
0.6.0 Sep 17, 2024
0.5.0 Jan 18, 2024
0.4.1 Jan 16, 2024
0.1.0 May 10, 2022

#54 in Graphics APIs

Download history 3628/week @ 2024-07-18 3710/week @ 2024-07-25 3771/week @ 2024-08-01 4081/week @ 2024-08-08 3982/week @ 2024-08-15 3895/week @ 2024-08-22 4032/week @ 2024-08-29 4510/week @ 2024-09-05 4230/week @ 2024-09-12 3049/week @ 2024-09-19 2750/week @ 2024-09-26 2619/week @ 2024-10-03 1999/week @ 2024-10-10 2667/week @ 2024-10-17 2379/week @ 2024-10-24 2856/week @ 2024-10-31

10,403 downloads per month
Used in 25 crates (6 directly)

MIT OR Apache-2.0 OR Zlib

220KB
1.5K SLoC

🦅 glyphon 🦁

Fast, simple 2D text rendering for wgpu

crates.io docs.rs Minimum Rust Version Build Status

What is this?

This crate provides a simple way to render 2D text with wgpu by:

  • shaping/calculating layout/rasterizing glyphs (with cosmic-text)
  • packing the glyphs into texture atlas (with etagere)
  • sampling from the texture atlas to render text (with wgpu)

To avoid extra render passes, rendering uses existing render passes (following the middleware pattern described in wgpu's Encapsulating Graphics Work wiki page.

License

This project is licensed under either Apache License, Version 2.0, zlib License, or MIT License, at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache 2.0 license, shall be triple licensed as above, without any additional terms or conditions.

Dependencies

~23–53MB
~882K SLoC