Zero-width non-joiner behaves incorrectly with some ligatures
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Clojure
- Estrellas
- 82k
- Forks
- 3.2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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! :)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce las secuencias indicadas con Fira Code 6.2 en Kitty o IntelliJ IDEA, comparando U+200C y U+200D con las ligaduras activadas y desactivadas. Determina si el comportamiento se encuentra en la fuente o en la aplicación de renderizado; se considera terminado cuando las secuencias afectadas siguen de forma coherente el comportamiento esperado del separador no vinculante de ancho cero y se ha documentado una ruta de reproducción directa.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- design
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 28/100