Bug 259205
| Summary: | [Harfbuzz] Glyphs need to be classified as either color or non-color | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
| Component: | Text | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cgarcia, mmaxfield, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=259139 https://bugs.webkit.org/show_bug.cgi?id=290996 |
||
Myles C. Maxfield
See https://webkit.slack.com/archives/CU65R5WQY/p1689189611828469.
In order to handle emoji properly, we need to know whether or not a glyph is a color glyph. Harfbuzz has functions for this (`hb_ot_color_has_paint()`, `hb_ot_color_has_png()`, `hb_ot_color_has_svg()`, etc.) but the only time Harfbuzz fonts exist in WebKit is inside ComplexTextController. There doesn't seem to be a place where I can call these functions outside of ComplexTextController.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/112640305>