No description
914a283e3f
Before this commit, all reexported symbols were displayed as if they were part of `glyphon` directly. Users not being able to see at a glance what's part of which crate has a few disadvantages. It makes understanding the whole stack more difficult, since it's unclear what's part of the wgpu-integration and what's part of the general text handling. Personally, I also think this can deter people from using glyphon as this makes the crate (which is "just" the wgpu integration) seem huge. Finally, some symbols in the docs were not linked (as if it was private), which is also really bad for browsing docs. |
||
---|---|---|
.github | ||
examples | ||
src | ||
.gitignore | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
LICENSE-ZLIB | ||
README.md |
🦅 glyphon 🦁
Fast, simple 2D text rendering for
wgpu
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.