Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Validate font contents at load time.
Piotr Osiewicza1049546a257
diff --git a/crates/gpui/src/platform/mac/text_system.rs b/crates/gpui/src/platform/mac/text_system.rsindex 79ffb8dc8e4..68f4a633267 100644--- a/crates/gpui/src/platform/mac/text_system.rs+++ b/crates/gpui/src/platform/mac/text_system.rs@@ -190,6 +190,9 @@ impl MacTextSystemState {for font in family.fonts() {let mut font = font.load()?;open_type::apply_features(&mut font, features);+ let Some(_) = font.glyph_for_char('m') else {+ continue;+ };let font_id = FontId(self.fonts.len());font_ids.push(font_id);let postscript_name = font.postscript_name().unwrap();