diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 795c83aba6..50630fb02a 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();