Zero-width non-joiner behaves incorrectly with some ligatures

Offen
#1,663 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
28/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Bereich
design

Rechercherichtung

Reproduziere die gemeldeten Sequenzen mit Fira Code 6.2 in Kitty oder IntelliJ IDEA und vergleiche U+200C und U+200D bei aktivierten und deaktivierten Ligaturen. Bestimme, ob das Verhalten in der Schriftart oder der Rendering-Anwendung liegt; abgeschlossen ist die Aufgabe, wenn die betroffenen Sequenzen konsistent dem erwarteten Verhalten des Zero-Width Non-Joiner folgen und ein direkter Reproduktionsweg dokumentiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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! :)

Vorherrschende Sprache
Clojure
Sterne
82k
Forks
3.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tonsky/FiraCode

Alle Issues in tonsky/FiraCode

Ähnliche Issues

Weitere Issues zu Clojure

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.