Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui_macos: Warn when falling back to NoopTextSystem (#59247)
Sergei G.759bacff378b
diff --git a/crates/gpui_macos/src/platform.rs b/crates/gpui_macos/src/platform.rsindex 87346991d64..aedb2d38274 100644--- a/crates/gpui_macos/src/platform.rs+++ b/crates/gpui_macos/src/platform.rs@@ -194,7 +194,14 @@ impl MacPlatform {let text_system = Arc::new(crate::MacTextSystem::new());#[cfg(not(feature = "font-kit"))]- let text_system = Arc::new(gpui::NoopTextSystem::new());+ let text_system = {+ if !headless {+ log::warn!(+ "gpui_macos was compiled without the `font-kit` feature, so no text will be rendered."+ );+ }+ Arc::new(gpui::NoopTextSystem::new())+ };let keyboard_layout = MacKeyboardLayout::new();let keyboard_mapper = Rc::new(MacKeyboardMapper::new(keyboard_layout.id()));