Zero-width non-joiner behaves incorrectly with some ligatures
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Clojure
- Star
- 82k
- Fork
- 3.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hiya,
I really don't know much about fonts and font development in general, so please feel free to close this issue if the described behavior is intended or likely caused by something else :)
I noticed some weird behavior with U+200C (Zero-width non-joiner). To my understanding, inserting this character should prevent the surrounding characters from forming a ligature together. In Fira Code, this behavior can be seen with the != ligature:
- the sequence
!=displays as a ligature - the sequence
!\U200C=does not display as a ligature
However, for some ligatures, this does not work. The following sequences seem to consistently render as ligatures, even though they shouldn't:
-\U200C>renders the->ligature~\U200C>renders the~>ligature-\U200C-renders the--ligature
And likely more. All of this was tested both in Kitty and in IntelliJ IDEA, with Fira Code 6.2.
Even more weirdly, when disabling ligatures (at least in IntelliJ, in Kitty disabling ligatures seems to just disable ligature rendering alltogether as U+200D doesn't even do anything anymore) the insertion of U+200C seems to force these ligatures to be rendered even if they otherwise wouldn't be, behaving the same as U+200D!
I tested this in the software that was available to me, if there's a more direct way to reproduce this without potentially being biased by application-specific ligature rendering weirdness do let me know. Again, I know very little about font developent.
Thank you! :)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện các chuỗi đã được báo cáo bằng Fira Code 6.2 trong Kitty hoặc IntelliJ IDEA, so sánh U+200C và U+200D khi bật và tắt ligature. Xác định xem hành vi nằm ở phông chữ hay ứng dụng kết xuất; được xem là hoàn tất khi các chuỗi bị ảnh hưởng nhất quán tuân theo hành vi mong đợi của ký tự không nối có độ rộng bằng không và đã ghi lại cách tái hiện trực tiếp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- design
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 28/100