From 65b86d6ed4bd7f85c1969ef5b2148fea7d8afd4a Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 27 Nov 2026 17:46:15 +0000 Subject: [PATCH] red-app-fonts: restore the emoji fallback (egui's monochrome Noto Emoji through UiFonts::emoji) and Hack for symbols Production installed an explicit monochrome emoji face; craft-fonts has none, so the first emoji drawn (the comment reactions) panicked in Monospace. Written by a Claude Sonnet red fixer (its session ended before committing); committed by the lead. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/app.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index 7fc1122c9..bed1d99d2 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -80,8 +80,14 @@ impl SlideApp { role: None, }) .collect(); + // craft-fonts has no emoji face; egui's monochrome one is the fallback for every family + // (the comment reactions and other emoji text), with Hack for symbols such as ◀. + let mut emoji = craft::ui::fonts::Emoji::default(); + emoji.monochrome = craft::ui::fonts::noto_emoji(); let fonts = craft::ui::fonts::UiFonts::new(&craft::ui::fonts::I18nScripts) .craft_faces(&faces) + .emoji(emoji) + .egui_face("Hack", &[craft::ui::fonts::FontRef::proportional()]) .ui_language(host.language_code()); embed::install(ctx, install, &fonts)?; host.clone().install(ctx);