Open
Bug 1363365
Opened 8 years ago
Updated 2 years ago
emoji modifier are not properly displayed in Android
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
NEW
People
(Reporter: julienw, Unassigned)
References
Details
Attachments
(4 files)
STR:
1. Open the attached file.
Expected:
We should see 2 characters (see attachment, screenshot taken on Firefox 54 on Linux)
Actual:
On Android 6 we see 3 characters: 2 first characters are black squares, last character is correct. On Chrome on the same device, we see 3 characters as well: the 2 first characters are squared with a cross, last character is correct.
On Android 7 we see the 2 correct characters on Chrome but only 1 incorrect character in Firefox (see screenshot).
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #0)
> Created attachment 8865841 [details]
> testcase-unicode.html
>
> STR:
> 1. Open the attached file.
>
> Expected:
> We should see 2 characters (see attachment, screenshot taken on Firefox 54
> on Linux)
Not necessarily...
AFAICS, your test file contains the sequence
U+1F937 SHRUG
U+1F3FB EMOJI MODIFIER FITZPATRICK TYPE-1-2
U+200D ZERO WIDTH JOINER
U+2642 MALE SIGN
U+FE0F VARIATION SELECTOR-16
Here, the EMOJI MODIFIER requests a light skin tone for the shrugging character. The VS16 requests "emoji-style" rendering of the MALE SIGN. And joining SHRUG/LIGHT + MALE with a ZWJ turns the whole thing into #426 in the Recommended Emoji ZWJ Sequences, v5.0.[1]
So if adequate font and rendering support is present, this entire sequence should render a single glyph, "man shrugging: light skin tone".
[1] http://unicode.org/emoji/charts/emoji-zwj-sequences.html
> Actual:
> On Android 6 we see 3 characters: 2 first characters are black squares, last
> character is correct. On Chrome on the same device, we see 3 characters as
> well: the 2 first characters are squared with a cross, last character is
> correct.
The various black squares or crossed squares are simply missing-glyph "tofu", indicating that no font was found that supports the characters in question.
> On Android 7 we see the 2 correct characters on Chrome but only 1 incorrect
> character in Firefox (see screenshot).
AFAICS, the Firefox-on-Android7 rendering is actually the "most correct" here, and the Chrome version is a fallback due to failure to support the emoji zwj sequence.
Reporter | ||
Updated•8 years ago
|
Attachment #8865842 -
Attachment description: Correct rendering → Rendering in Firefox Desktop (Nightly) on Linux
Reporter | ||
Comment 5•8 years ago
|
||
Thanks, I updated the description of attachment 8865842 [details].
Is there anything we can do to make things better ?
FWIW I took the emoji from a Telegram discussion.
Reporter | ||
Updated•8 years ago
|
Attachment #8865841 -
Attachment mime type: text/html → text/html; charset=utf-8
Reporter | ||
Comment 6•8 years ago
|
||
^ Fixed the attachment's encoding, now it should display as intended.
Comment 7•8 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #5)
> Thanks, I updated the description of attachment 8865842 [details].
>
> Is there anything we can do to make things better ?
Well, in theory we could ship an emoji font with Fennec that supports these things, instead of relying on the device's installed font. But a complete emoji font is rather a big thing, and we're trying to reduce rather than increase our package size.
(The rendering in Firefox on desktop Linux will presumably improve if/when we update the bundled EmojiOne font to a new release; that's currently under discussion in bug 1358240.)
Reporter | ||
Comment 8•8 years ago
|
||
Looking at http://emojipedia.org/unicode-8.0/ with my device I see that only the skin tone are missing. That's too bad :(
I don't even know if we can add new fonts to an Android device, so there is likely no point displaying a message to the user to try to improve things. Should we close this bug then ?
Comment 9•8 years ago
|
||
Well, we do ship fonts for fennec to use as default serif and sans-serif faces, in preference to the device's own fonts (Droid or Roboto or whatever). They're not installed globally on the device, they're private to the browser.
We could do the same with the EmojiOne font if we're willing to take the size hit. It would be delivered post-installation via the DLC mechanism (as we already do for the text fonts), so it wouldn't be part of the basic APK, but would still contribute to our eventual installed footprint on the device.
The other question we'd face, if we decided to do that, would be which emoji font to prioritize in the case where Noto Color Emoji (or some other vendor-provided font) -is- preinstalled, so there are then two emoji fonts that could render any given symbol.
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•