settings: Suggest fonts bundled in Zed (#4102)

Fixes an issue where Zed Sans is not being suggested as a font.

Release Notes:
- N/A
This commit is contained in:
Piotr Osiewicz 2024-01-18 00:54:07 +01:00 committed by GitHub
parent 6cbc49e5f0
commit ec2b299ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}