Open wezm opened 1 month ago
Linux implementation dose not support font features for now.
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:
Seems like we need to wait for https://github.com/pop-os/cosmic-text/issues/229 to be resolved
Check for existing issues
Possibly related to https://github.com/zed-industries/zed/issues/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 71a94c775b752af59b9be7f41e78afef5e63615e) 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