New issue
Advanced search Search tips

Issue 905603 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Use harfbuzz cluster level 1 to allow coloring marks in different colors

Project Member Reported by kojii@chromium.org, Nov 15

Issue description

@khaledhosny said Firefox uses level 1 to color combining marks in different colors.

https://github.com/w3c/csswg-drafts/issues/699#issuecomment-438985815

https://bugzilla.mozilla.org/show_bug.cgi?id=729993

The patch seems as simple as adding:
> hb_buffer_set_cluster_level(buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);

Need to learn a bit more what it does and its impact.
 
It's not as simple as it changes how HarfBuzz returns cluster information and character indices. In my understanding, just adding that would break our grapheme fallback logic including the Emoji cluster grouping that we just recently fixed in  issue 774302 .
Good point, I suspected there will be impacts but was not sure what they are.

Font fallback is very like affected, thank you!
We've talked about this before.  Maybe we can extend cluster models to a new one that will contain information of both level 0 and level 1.

Sign in to add a comment