graphic design tool
git clone https://git.lucas.co/cce-designer.git
deps: drop glyphon, use cce-ui's cosmic-text re-export
cce-ui no longer depends on glyphon (a wgpu text renderer whose wgpu-side API
was unreachable once the Vulkan path replaced it) — it depends on cosmic-text
directly and re-exports it. Everything this crate named as `glyphon::` was a
cosmic-text re-export, so it now goes through `cce_ui::cosmic_text` and needs
no text-library dependency of its own. That also makes it impossible to drift
onto a second cosmic-text version: a FontSystem handed to cce-ui must be the
same type.
No behavior change — cosmic-text is pinned to the version glyphon resolved to
(=0.12.1) and shaping was verified identical glyph-for-glyph.
Co-Authored-By: Claude <[email protected]>
Cargo.toml | 1 -
src/vk_smoke.rs | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 77a91c5..7c7c0cf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,6 @@ xkeysym = "0.2"
bytemuck = { version = "1", features = ["derive"] }
# Only the vk-smoke bin shapes text directly now — the app's text goes through
# the engine's display-list pass (display_list_text) since the paint migration.
-glyphon = "0.8"
tokio = { version = "1", features = ["full"] }
glam = "0.29"
serde = { version = "1", features = ["derive"] }
diff --git a/src/vk_smoke.rs b/src/vk_smoke.rs
index 90a554d..f464189 100644
--- a/src/vk_smoke.rs
+++ b/src/vk_smoke.rs
@@ -32,8 +32,8 @@ use calloop_wayland_source::WaylandSource;
use cce_ui::engine::{quad_vertices, Vertex};
use glam::{Mat4, Vec3};
-use glyphon::cosmic_text::{Attrs, Buffer as TextBuffer, Family, Metrics, Shaping};
-use glyphon::{FontSystem, SwashCache};
+use cce_ui::cosmic_text::{Attrs, Buffer as TextBuffer, Family, Metrics, Shaping};
+use cce_ui::cosmic_text::{FontSystem, SwashCache};
use vk::{Frame2D, ImageQuad, RtCamera, RtMaterial, RtTriangle, SceneDraw, TextSpan, Vertex3D, VkRenderer};
struct SmokeApp {