Skip to content

🦅🦁 Fast, simple 2D text renderer for wgpu

Notifications You must be signed in to change notification settings

j-dewey/glyphon-for-open-world

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦅 glyphon 🦁

Fast, simple 2D text rendering for wgpu

crates.io docs.rs Minimum Rust Version Build Status

This is to make Glyphon compataible with my OpenWorld repository. I'll come back to this everytime that it falls out of date with WGPU, WINIT, and LOG I'm not sure if I should change the TOML package data, but the only change from the main branch was the version of one library dependancy, so that feels wrong. If I should, just put it as an issue and I will fix it.

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.

About

🦅🦁 Fast, simple 2D text renderer for wgpu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 93.4%
  • WGSL 6.6%