Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove duplicate `load_system_fonts`call (#19374)

Alvaro Parker83ad28dfe721
diff --git a/crates/gpui/src/platform/linux/text_system.rs b/crates/gpui/src/platform/linux/text_system.rs
index 65cc512d19f..7a053bfc96a 100644
--- a/crates/gpui/src/platform/linux/text_system.rs
+++ b/crates/gpui/src/platform/linux/text_system.rs
@@ -36,10 +36,8 @@ struct CosmicTextSystemState {
impl CosmicTextSystem {
pub(crate) fn new() -> Self {
- let mut font_system = FontSystem::new();
-
// todo(linux) make font loading non-blocking
- font_system.db_mut().load_system_fonts();
+ let mut font_system = FontSystem::new();
Self(RwLock::new(CosmicTextSystemState {
font_system,