Bug 259205 - [Harfbuzz] Glyphs need to be classified as either color or non-color
Summary: [Harfbuzz] Glyphs need to be classified as either color or non-color
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-13 22:06 PDT by Myles C. Maxfield
Modified: 2023-07-20 22:07 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 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.
Comment 1 Radar WebKit Bug Importer 2023-07-20 22:07:17 PDT
<rdar://problem/112640305>