Switch to the system UI font on macOS (#10317)

To reference the system font, use the special ".SystemUIFont" family
name.

/cc @PixelJanitor 

Release Notes:

- Switched to the system UI  font for user interface elements on macOS.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Nathan Sobo 2024-04-09 06:44:57 -07:00 committed by GitHub
parent 8205c52d2b
commit 414058379b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 28 additions and 10 deletions

View file

@ -675,6 +675,8 @@ impl Hash for RenderEmojiParams {
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub struct Font {
/// The font family name.
///
/// The special name ".SystemUIFont" is used to identify the system UI font, which varies based on platform.
pub family: SharedString,
/// The font features to use.