# gpui: Make TextSystem::line_wrapper non-fallible\. \(\#4022\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a98d0489053ca2053c5a6e3b0673f79e3bedd053

Requested commit: a98d0489053ca2053c5a6e3b0673f79e3bedd053

Commit: a98d0489053ca2053c5a6e3b0673f79e3bedd053

Tree: 05b4248eed6a704171d39a06048473f865a509d5

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
gpui: Make TextSystem::line_wrapper non-fallible. (#4022)

Editors WrapMap could become desynchronised if user had an invalid font
specified in their config. Compared to Zed1, WrapMap ignored the
resolution failure instead of panicking. Now, if there's an invalid font
in the user config, we just fall back to an arbitrary default.


Release Notes:
- Fixed the editor panic in presence of invalid font name in the config
(fixes https://github.com/zed-industries/community/issues/2397)

---------

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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