gpui: Fix macOS font render clipped bug again#47001
Merged
Veykril merged 8 commits intozed-industries:mainfrom Mar 19, 2026
Merged
gpui: Fix macOS font render clipped bug again#47001Veykril merged 8 commits intozed-industries:mainfrom
Veykril merged 8 commits intozed-industries:mainfrom
Conversation
Contributor
Author
|
I've tried many methods without success, so it seems the problem might be internal to FontKit itself. Maybe servo/font-kit#194 servo/font-kit#253 The current fix, increasing the font size by 1-5 pixels based on a 3% font size, looks a bit odd, but it does solve the issue. And the maximum 5px increase has minimal negative impact on font rendering. |
Veykril
approved these changes
Mar 17, 2026
Member
Veykril
left a comment
There was a problem hiding this comment.
Will merge this after preview cuts tomorrow to give this some time to bake, thanks!
Member
|
if you could rebase this then I'm happy to merge |
Contributor
Author
|
@Veykril Done cargo run -p gpui --example textAnd I have to enable
|
AmaanBilwar
pushed a commit
to AmaanBilwar/zed
that referenced
this pull request
Mar 20, 2026
Continue zed-industries#45957 zed-industries#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" />
toshmukhamedov
pushed a commit
to toshmukhamedov/zed
that referenced
this pull request
Mar 20, 2026
Continue zed-industries#45957 zed-industries#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" />
AmaanBilwar
pushed a commit
to AmaanBilwar/zed
that referenced
this pull request
Mar 23, 2026
Continue zed-industries#45957 zed-industries#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" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Continue #45957 #46906 to fix font render issue again.
Release Notes:
.SystemUIFont.Test in Zed with
.ZedMonofont:With
.ZedSans:Monaco:Menlo: