Bug 97286

Summary: Chromium mac cannot display AppleColorEmoji
Product: WebKit Reporter: Kenichi Ishibashi <bashi>
Component: PlatformAssignee: Kenichi Ishibashi <bashi>
Status: RESOLVED FIXED    
Severity: Normal CC: tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Kenichi Ishibashi 2012-09-20 20:10:27 PDT
See http://crbug.com/62435

We need to ask Skia to use CTFontDrawGlyphs(). It will take time, so I'd like to disable AppleColorEmoji for now so that fallback fonts can be selected.
Comment 1 Kenichi Ishibashi 2012-09-20 20:16:06 PDT
Created attachment 165038 [details]
Patch
Comment 2 Kenichi Ishibashi 2012-09-20 20:16:39 PDT
Kent-san,

What do you think about disabling AppleColorEmoji now?
Comment 3 Kent Tamura 2012-09-20 20:36:54 PDT
Comment on attachment 165038 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165038&action=review

> Source/WebCore/platform/graphics/mac/FontCacheMac.mm:122
> +#if PLATFORM(CHROMIUM) && OS(DARWIN)
> +    // Chromium can't render AppleColorEmoji.
> +    if ([[substituteFont familyName] isEqual:@"Apple Color Emoji"])
> +        return 0;
> +#endif

nit: I think OS(DARWIN) is not needed.

FYI:
Using PLATFORM() macro is not preferable in general.
Ideally, we had better have WTF_USE_NO_APPLE_COLOR_EMOJI flag, and enable it for Chromium in WebCore/config.h.

Using PLATFORM() is acceptable in this case because it's temporarily.
Comment 4 Kenichi Ishibashi 2012-09-20 20:59:20 PDT
Created attachment 165041 [details]
Patch for landing
Comment 5 Kenichi Ishibashi 2012-09-20 21:00:55 PDT
Comment on attachment 165038 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165038&action=review

>> Source/WebCore/platform/graphics/mac/FontCacheMac.mm:122
>> +#endif
> 
> nit: I think OS(DARWIN) is not needed.
> 
> FYI:
> Using PLATFORM() macro is not preferable in general.
> Ideally, we had better have WTF_USE_NO_APPLE_COLOR_EMOJI flag, and enable it for Chromium in WebCore/config.h.
> 
> Using PLATFORM() is acceptable in this case because it's temporarily.

Removed OS(DARWIN).

Thank you for the heads-up. I'll keep in mind it!
Comment 6 WebKit Review Bot 2012-09-20 21:42:23 PDT
Comment on attachment 165041 [details]
Patch for landing

Clearing flags on attachment: 165041

Committed r129190: <http://trac.webkit.org/changeset/129190>
Comment 7 WebKit Review Bot 2012-09-20 21:42:26 PDT
All reviewed patches have been landed.  Closing bug.