No description
b2129f1765
* add support for svg icons * remove SVG helper struct * forgot to remove default features * rework api for custom glyphs * remove unused file * expose custom glyph structs * remove `InlineBox` * use slice for TextArea::custom_glyphs * offset custom glyphs by text area position * remove svg feature * remove unused file * add scale field to CustomGlyphInput * update custom-glyphs example to winit 0.30 * fix the mess merge conflicts made * add final newline * make custom-glyphs a default feature * remove custom-glyphs feature * remove unnecessary pub(crate) * rename CustomGlyphDesc to CustomGlyph * rename CustomGlyphID to CustomGlyphId * improve custom glyph API and refactor text renderer * rename CustomGlyphInput and CustomGlyphOutput, add some 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.