From ec2b299ecb8fe794385054cf04bd81f43d2e699a Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 18 Jan 2024 00:54:07 +0100 Subject: [PATCH] settings: Suggest fonts bundled in Zed (#4102) Fixes an issue where Zed Sans is not being suggested as a font. Release Notes: - N/A --- crates/gpui/src/platform/mac/text_system.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/gpui/src/platform/mac/text_system.rs b/crates/gpui/src/platform/mac/text_system.rs index 06179e126b..a77741074f 100644 --- a/crates/gpui/src/platform/mac/text_system.rs +++ b/crates/gpui/src/platform/mac/text_system.rs @@ -87,6 +87,9 @@ impl PlatformTextSystem for MacTextSystem { for descriptor in descriptors.into_iter() { names.insert(descriptor.display_name()); } + if let Ok(fonts_in_memory) = self.0.read().memory_source.all_families() { + names.extend(fonts_in_memory); + } names.into_iter().collect() }