[Webkit-unassigned] [Bug 191976] [FreeType] Noto Color Emoji is partially used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 27 20:58:35 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191976

--- Comment #6 from Akira TAGOH <akira at tagoh.org> ---
There are nothing wrong. but it just needs to take care of emoji forthermore.

As the original reporter says and also I demonstrated at comment#2, DejaVu has emoji now. when DejaVu is picked up for a cluster by performing a fallback of "sans", it will be used as is unless they didn't classifiy emoji separately and look up a font for emoji instead of "sans" and so on.

I think the colored emoji should be used by default though, someone might prefers B&W. so browsers may needs to know which one they like:

int
is_color_enabled(void)
{
    FcPattern *pat = FcPatternCreate();
    FcBool b;

    FcPatternAddString (pat, FC_FAMILY, (const FcChar8 *)"emoji");
    FcConfigSubstitute (NULL, pat, FcMatchPattern);
    FcDefaultSubstitute (pat);
    if (FcPatternGetBool (pat, FC_COLOR, 0, &b) == FcResultMatch)
        return 0;
    return b;
}

if none of colored fonts is available on the list of fonts in CSS, then you can perform another fallback with "emoji". does it make sense?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181128/9b2af92e/attachment.html>


More information about the webkit-unassigned mailing list