# gpui: Fix macOS font render clipped bug again \(\#47001\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5b104deacbd7d27674cf6c744bcd52bc8c176647

Requested commit: 5b104deacbd7d27674cf6c744bcd52bc8c176647

Commit: 5b104deacbd7d27674cf6c744bcd52bc8c176647

Tree: dc90949f46999204740cf8faf100b5b0b491e086

Author: Jason Lee

Committer: GitHub

## Message

````
gpui: Fix macOS font render clipped bug again (#47001)

Continue #45957 #46906 to fix font render issue again.

Release Notes:

- Fixed macOS font render clipped bug when use `.SystemUIFont`.

| .SystemUIFont | .ZedMono |
| --- | --- |
| <img width="1034" height="978" alt="image"
src="https://github.com/user-attachments/assets/96b815a1-9484-4a38-8391-a4af3db51a36"
/> | <img width="1034" height="978" alt="image"
src="https://github.com/user-attachments/assets/1aaece42-9acd-47b0-a0a0-3cb425f40301"
/> |

```bash
cargo run -p gpui --example text
```

Test in Zed with `.ZedMono` font:

<img width="815" height="844" alt="image"
src="https://github.com/user-attachments/assets/1e44d186-cee5-4f54-910a-4c4602ca010e"
/>

With `.ZedSans`:

<img width="815" height="844" alt="image"
src="https://github.com/user-attachments/assets/1e502f3e-794c-4082-9faf-5a920adc1214"
/>

`Monaco`:

<img width="815" height="844" alt="image"
src="https://github.com/user-attachments/assets/906a3fd2-715a-4f53-b6fe-4614f4c6edab"
/>

`Menlo`:

<img width="815" height="844" alt="image"
src="https://github.com/user-attachments/assets/a8f8c302-2083-477c-ae72-f6e5c7f91d00"
/>
````

## Parents

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

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