avenger-glyphon

Crates.ioavenger-glyphon
lib.rsavenger-glyphon
version0.3.0
sourcesrc
created_at2024-01-30 13:35:57.890072
updated_at2024-01-30 13:35:57.890072
descriptionFast, simple 2D text rendering for wgpu
homepagehttps://github.com/grovesNL/glyphon.git
repositoryhttps://github.com/grovesNL/glyphon
max_upload_size
id1120236
size452,049
Jon Mease (jonmmease)

documentation

README

This is a (hopefully short-term) fork of the excellent glyphon project which adds text rotation support. The approach here is used by the Avenger visualization project, but is not sufficiently general as to be included in glyphon itself. See discussion in https://github.com/grovesNL/glyphon/pull/64 for background.


🦅 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.

Commit count: 140

cargo fmt