# \`TextStyle::default\(\)\` ask system for known existing font family \(\#2542\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8f0fc918e9946283a6667e1cb2c82ccf291f8308

Requested commit: 8f0fc918e9946283a6667e1cb2c82ccf291f8308

Commit: 8f0fc918e9946283a6667e1cb2c82ccf291f8308

Tree: a34cfa4f7cb7f555234dda29b68351b447babc69

Author: Julia

Committer: GitHub

## Message

```
`TextStyle::default()` ask system for known existing font family (#2542)

Rather than assuming a specific family exists, try a set of specific
names and if they fail, just grab any old font that the system reports
as existing

Closes
https://linear.app/zed-industries/issue/Z-445/thread-main-panicked-at-called-resultunwrap-on-an-err-value-could-not

Release Notes:

* Fixed crash that could happen if system did not have a specific
fallback font
```

## Parents

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

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

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