Open sh2sg opened 1 month ago
Thank you for the report. I looked into it and found this is a bug on the Apple side within the framework used by CotEditor.
The ligature option in CotEditor works with most fonts (such as Baskerville) while does not work with some specific fonts like JetBrains Mono or Fira Code. TextKit 2, the successor to the text framework used by CotEditor, seems to have solved this problem, but unfortunately, there are still high barriers that prevent CotEditor from migrating to TextKit 2. So, I feel CotEditor can nothing for this issue at the moment.
I have reported it to Apple: FB14352598. Let's hope Apple will fix it.
A test app I made to check this issue. The first line, "fi," is Baskerville and the second line, "==>," is JetBrains Mono.
https://github.com/user-attachments/assets/693c794d-ab92-482c-b0ca-cc0fe47ebffd
I doubt Apple will provide support for TextKit 1. Anyway, thanks for checking. Maybe I should stick with the ligature efforts or choose another font.
I doubt Apple will provide support for TextKit 1.
Haha, in fact, that's what I think too. I'll migrate to TextKit 2 one day, but not now.
I just realized that JetBrains Mono also offers a non-ligature version... I am happy user again. https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.304
Description
Ligatures can't be disabled.
To Reproduce
Expected behavior
Ligatures efforts should be disabled.
CotEditor version
4.8.7
macOS version
14.5
Additional context
No response