# Fix panic in linux text rendering \+ refactor to avoid similar errors \(\#30601\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 986d271ea7507692e929353c10ead87a1f044310

Requested commit: 986d271ea7507692e929353c10ead87a1f044310

Commit: 986d271ea7507692e929353c10ead87a1f044310

Tree: 3829b0435071e65fcdfcb61e6bd99927a0c545a5

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix panic in linux text rendering + refactor to avoid similar errors (#30601)

See #27808. `font_id_for_cosmic_id` was another path updated
`loaded_fonts_store` but did not push to `features_store`. Solution is
just to have one `Vec` with fields rather than relying on the indices
matching up

Release Notes:

- N/A
```

## Parents

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

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