Fix zero-width-joiner emoji layout (DISABLED_supportsZeroWidthJoiner)

Abierto
#229 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Read snap_drawing/test/src/TextLayout_Tests.cpp and the comment above the disabled test to see the observed layout. Run the supplied Bazel test on macOS, then trace how text layout shapes or segments the listed ZWJ sequences with Apple Color Emoji. Done when the test passes after removing the DISABLED_ prefix.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

TextLayout.DISABLED_supportsZeroWidthJoiner in snap_drawing/test/src/TextLayout_Tests.cpp is disabled because zero-width-joiner sequences don't lay out correctly with the Apple Color Emoji font.

The test lays out 🏳️‍🌈👨‍🌾👨‍🦰 क्‍ष ශ්‍ර. Each emoji sequence should render as a single glyph, but the joined sequences come out wrong. The comment above the test records the observed output.

What to do: fix shaping or segmenting of ZWJ sequences in the text layout so each sequence stays one segment in the emoji font. Then remove the DISABLED_ prefix.

How to run (macOS only: TextLayout_Tests.cpp is excluded from the Linux build)

bazel test //snap_drawing:test --test_filter='TextLayout.*ZeroWidthJoiner' --test_arg=--gtest_also_run_disabled_tests

Done when: the test runs without DISABLED_ and passes.

See CONTRIBUTING.md before opening a pull request.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
539
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.