-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only some ligatures are being applied #12176
Comments
Linux implementation dose not support font features for now. |
Ahh I see, well I guess this can act as a tracking issue for the implementation. Here's the TODO: zed/crates/gpui/src/platform/cosmic_text/text_system.rs Lines 198 to 204 in 3ec9469
|
Seems like we need to wait for pop-os/cosmic-text#229 to be resolved |
Same thing happening in windows |
Same thing happening in ubuntu 24.04 zed 0.143.6 |
1 similar comment
Same thing happening in ubuntu 24.04 zed 0.143.6 |
I'm facing this issue as well on Arch Linux using Zed 0.144.3. @JunkuiZhang and @peppidesu could you explain in short how you came to the conclusion that this is about missing font feature support? I am asking because some ligatures work fine, while others do not. E.g. as @wezm noted (and as you can see in his screenshot),
|
@t9t I implemented font feature support on Windows and macOS. However, it is currently impossible to implement font features on Linux because it uses the cosmic text system, which does not support setting font features. See pop-os/cosmic-text#229 |
Linux uses
You can see that zed/crates/gpui/src/platform/cosmic_text/text_system.rs Lines 202 to 208 in 7d30175
|
Thanks a lot. Let me rephrase my question. I would like to understand how the lack of implementation of font features lead to some ligatures missing, while other ligatures work. |
I guess this is some kind of default behavior that cosmic text provides? Sorry I know little about cosmic text. |
Also not seeing ligatures on Ubuntu 22.04.4 LTS zed 0.144.4 |
same issue |
same issue |
Check for existing issues
Possibly related to #11127 but that is specifically about the terminal.
Describe the bug / provide steps to reproduce it
I have enabled ligatures in my
settings.json
:However only some of the expected ligatures are being applied. For example if I type
<!--
it ligates correctly, as does=>
but!=
should ligate to≠
and->
to something like→
but they do not.These are documented in the font handbook as part of
calt
as well as shown in other editors.Environment
Zed: v1.0.0 (Zed Dev 71a94c7)
OS: Linux 1.0.0 (X11)
Memory: 62.5 GiB
Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
These screenshots show the difference in rendering between Zed and JetBrains Rust Rover both using the same font with ligatures enabled.
Zed:
In this one
=>
is ligating but->
,>>
inread::<CmapSubtable<'_>>()
and//
are not.Rust Rover:
Zed:
In this one it appears that
[[
and]]
are ligating but!=
is not.Rust Rover:
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: