Bug 259205

Summary: [Harfbuzz] Glyphs need to be classified as either color or non-color
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: TextAssignee: 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
Reported 2023-07-13 22:06:08 PDT
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
Radar WebKit Bug Importer
Comment 1 2023-07-20 22:07:17 PDT
Note You need to log in before you can comment on or make changes to this bug.