Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grovesNL/glyphon
🦅🦁 Fast, simple 2D text renderer for wgpu
https://github.com/grovesNL/glyphon
2d glyph render rust text wgpu
Last synced: 22 days ago
JSON representation
🦅🦁 Fast, simple 2D text renderer for wgpu
- Host: GitHub
- URL: https://github.com/grovesNL/glyphon
- Owner: grovesNL
- Created: 2022-05-09T12:38:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T14:17:58.000Z (7 months ago)
- Last Synced: 2024-05-08T14:41:51.071Z (7 months ago)
- Topics: 2d, glyph, render, rust, text, wgpu
- Language: Rust
- Homepage:
- Size: 311 KB
- Stars: 343
- Watchers: 9
- Forks: 45
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-2d-graphics-rendering - glyphon
README
🦅 glyphon 🦁
## What is this?
This crate provides a simple way to render 2D text with [`wgpu`](https://github.com/gfx-rs/wgpu/) by:
- 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/))
- 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).
## License
This project is licensed under either [Apache License, Version 2.0](LICENSE-APACHE), [zlib License](LICENSE-ZLIB), or [MIT License](LICENSE-MIT), 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.