# Misc optimization/cleanup of use of Cosmic Text on Linux \(\#30658\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 71ea7aee3ba2dca2344d2025ef1981715eb2568d

Requested commit: 71ea7aee3ba2dca2344d2025ef1981715eb2568d

Commit: 71ea7aee3ba2dca2344d2025ef1981715eb2568d

Tree: 2276e4dbe70e2fa81297ec99ef4d588cbc9975e4

Author: Michael Sloan

Committer: GitHub

## Message

```
Misc optimization/cleanup of use of Cosmic Text on Linux (#30658)

* Use cosmic_text `metadata` attr to write down the `FontId` from the
input run to avoid searching the list of fonts when laying out every
glyph.

* Instead of checking on every glyph if `postscript_name` is an emoji
font, just store `is_known_emoji_font`.

* Clarify why `font_id_for_cosmic_id` is used, and when its use is
valid.

Release Notes:

- N/A
```

## Parents

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

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