Fix zero-width-joiner emoji layout (DISABLED_supportsZeroWidthJoiner)

オープン
#229 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
16.4k
フォーク
539
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Snapchat/Valdi のほかの issue

Snapchat/Valdi の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。