No description
Find a file
2022-05-10 09:31:36 -02:30
.github/workflows Create rust.yml 2022-05-10 09:29:10 -02:30
examples Use oversized buffers 2022-05-10 08:48:28 -02:30
src Use oversized buffers 2022-05-10 08:48:28 -02:30
.gitignore Remove lock 2022-05-10 09:21:45 -02:30
Cargo.toml Remove override 2022-05-10 09:31:32 -02:30
LICENSE-APACHE Initial commit 2022-05-09 10:19:10 -02:30
LICENSE-MIT Initial commit 2022-05-09 10:19:10 -02:30
LICENSE-ZLIB Initial commit 2022-05-09 10:19:10 -02:30
README.md Add space 2022-05-10 08:55:00 -02:30

🦅🦁 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:

  • rasterizing glyphs (with fontdue)
  • packing the glyphs into texture atlas (with etagere)
  • calculate layout for text (with fontdue)
  • 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.