fonts: Use Helvetica as the system-ui font on macOS (#39001)

Helvetica isn't quite right but it's a better default choice than a
monospaced font like Menlo (it should be some variant of Apple's San
Francisco font, but that isn't easily exposed)

Testing: Untested, but matches the font family used for `sans-serif` so
it should be safe

Signed-off-by: Darryl Pogue <darryl@dpogue.ca>
This commit is contained in:
Darryl Pogue 2025-08-29 04:20:39 -07:00 committed by GitHub
parent 8beef6c21f
commit 89e1357c75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,7 @@ pub fn default_system_generic_font_family(generic: GenericFontFamily) -> Lowerca
GenericFontFamily::Monospace => "Menlo",
GenericFontFamily::Cursive => "Apple Chancery",
GenericFontFamily::Fantasy => "Papyrus",
GenericFontFamily::SystemUi => "Menlo",
GenericFontFamily::SystemUi => "Helvetica",
}
.into()
}