Rename to iced_glyphon and explain the reason of the fork

This commit is contained in:
Héctor Ramón Jiménez 2024-09-18 03:02:33 +02:00
parent 09712a70df
commit 59a3ecef65
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 9 additions and 11 deletions

View file

@ -1,10 +1,10 @@
[package] [package]
name = "glyphon" name = "iced_glyphon"
description = "Fast, simple 2D text rendering for wgpu" description = "Fast, simple 2D text rendering for wgpu"
version = "0.5.0" version = "0.6.0"
edition = "2021" edition = "2021"
homepage = "https://github.com/grovesNL/glyphon.git" homepage = "https://github.com/hecrj/glyphon.git"
repository = "https://github.com/grovesNL/glyphon" repository = "https://github.com/hecrj/glyphon"
license = "MIT OR Apache-2.0 OR Zlib" license = "MIT OR Apache-2.0 OR Zlib"
[dependencies] [dependencies]

View file

@ -1,5 +1,5 @@
<h1 align="center"> <h1 align="center">
🦅 glyphon 🦁 🧊🦅 iced_glyphon 🦁🧊
</h1> </h1>
<div align="center"> <div align="center">
Fast, simple 2D text rendering for <a href="https://github.com/gfx-rs/wgpu/"><code>wgpu</code></a> Fast, simple 2D text rendering for <a href="https://github.com/gfx-rs/wgpu/"><code>wgpu</code></a>
@ -14,13 +14,11 @@
## What is this? ## What is this?
This crate provides a simple way to render 2D text with [`wgpu`](https://github.com/gfx-rs/wgpu/) by: This is a temporary fork of [`glyphon`] used by [`iced`] until [this `wgpu` issue] is fixed.
- shaping/calculating layout/rasterizing glyphs (with [`cosmic-text`](https://github.com/pop-os/cosmic-text/)) [`glyphon`]: https://github.com/grovesNL/glyphon
- packing the glyphs into texture atlas (with [`etagere`](https://github.com/nical/etagere/)) [`iced`]: https://github.com/iced-rs/iced
- sampling from the texture atlas to render text (with [`wgpu`](https://github.com/gfx-rs/wgpu/)) [this `wgpu` issue]: https://github.com/gfx-rs/wgpu/issues/5756
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 ## License