fonts: Respect emoji variation selector when selecting fonts (#32493)

This uses a pretty simple heuristic to select a font likely to contain
color emoji. In the future Servo should actually check if the font also
contains a color representation of the character in question. For now
the code assumes that when a font supports color glyphs of some kind and
supports the character in question at all, it supports the color
version.

This fixes support for rendering keycap emoji clusters such as 1️⃣ .

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Martin Robinson 2024-06-18 06:37:47 +02:00 committed by GitHub
parent 79cd87a3c3
commit 57b64d8123
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 87 additions and 28 deletions

View file

@ -1,2 +0,0 @@
[text-transform-capitalize-026.html]
expected: FAIL