Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Only load TTF fonts for now, additional font types will need to be manually added
Nate Butleraf388e7f9cc1
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex 795c83aba65..50630fb02ad 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -654,6 +654,10 @@ fn load_embedded_fonts(app: &App) {let embedded_fonts = Mutex::new(Vec::new());smol::block_on(app.background().scoped(|scope| {for font_path in &font_paths {+ if !font_path.ends_with(".ttf") {+ continue;+ }+scope.spawn(async {let font_path = &*font_path;let font_bytes = Assets.load(font_path).unwrap().to_vec();