notification daemon
git clone https://git.lucas.co/cce-notifier.git
refactor: create FontSystem via cce_ui::create_font_system_with_system_fonts
Use the shared cce_ui helper (system + bundled CCE fonts) instead of a bare
glyphon::FontSystem::new(). For the five apps that used FontSystem::new() this
additionally loads the bundled CCE fonts; the two hybrids drop their manual
load_fonts_dir call. Additive — no font source is lost.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
src/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 82ce18c..a9fb273 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -951,7 +951,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}, None)).expect("Failed to request wgpu device");
// Initialize renderer resources once
- let font_system = FontSystem::new();
+ let font_system = cce_ui::create_font_system_with_system_fonts();
let swash_cache = SwashCache::new();
let cache = Cache::new(&wgpu_device);
let mut text_atlas = TextAtlas::new(&wgpu_device, &wgpu_queue, &cache, wgpu::TextureFormat::Bgra8Unorm);