mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
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:
parent
79cd87a3c3
commit
57b64d8123
9 changed files with 87 additions and 28 deletions
|
@ -1,2 +0,0 @@
|
|||
[text-transform-capitalize-026.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue