# gpui: Add more default font fallbacks \(\#35086\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/83f9f9d9e3f5914392cab9a09e3472711a1d7b38)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 83f9f9d9e3f5914392cab9a09e3472711a1d7b38

Requested commit: 83f9f9d9e3f5914392cab9a09e3472711a1d7b38

Commit: 83f9f9d9e3f5914392cab9a09e3472711a1d7b38

Tree: b48c59bf128ff40fe729596a6ac34c8d64cbd7bc

Author: Jason Lee

Committer: GitHub

## Message

````
gpui: Add more default font fallbacks (#35086)

Release Notes:

- N/A

---

- Set `.SystemUIFont` as the GPUI default font.
- Add `Arial` to font fallback list.
- Add `Adwaita Sans` to default fallback list for Gnome.
- Move `Ubuntu` font to front of Gnome to make sure Ubuntu System takes
priority over `Ubuntu` font.

Our application get some crash report:

```
panicked at /Users/admin/.cargo/git/checkouts/zed-a70e2ad075855582/f1db3b4/crates/gpui/src/text_system.rs:150:9:
failed to resolve font 'Helvetica' or any of the fallbacks: Zed Plex Mono, Helvetica, Segoe UI, Cantarell, Ubuntu, Noto Sans, DejaVu Sans
```

This change to add `Arial` to fallback list, this font was included in
macOS and Windows.
Ref link (search "Arial"):

> Mac OS X (now known as [macOS](https://en.wikipedia.org/wiki/MacOS))
was the first Mac OS version to include Arial;
> https://en.wikipedia.org/wiki/Arial

- macOS Sequoia: https://support.apple.com/en-us/120414
- Windows 10:
https://learn.microsoft.com/en-us/typography/fonts/windows_10_font_list
- Gnome: https://developer.gnome.org/hig/guidelines/typography.html
````

## Parents

- [43baa5d8b87399a02cc7f6f413c101d810a7d472](https://git.cafe/gitcafe/zed/commit/43baa5d8b87399a02cc7f6f413c101d810a7d472?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/83f9f9d9e3f5914392cab9a09e3472711a1d7b38?format=markdown)
