Closed Bug 1455265 Opened 7 years ago Closed 6 years ago

Elements with writing-mode:tb-rl don't display ZWJ Emoji sequences expectedly

Categories

(Core :: Graphics: Text, defect, P3)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox59 --- affected
firefox60 --- affected
firefox61 --- affected

People

(Reporter: kei.itof, Unassigned)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

Attached image vertical-emoji.gif
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce: 1. Visit https://codepen.io/wemotter/pen/MGYmKy 2. Click the "toggle vertical" button Actual results: Each emoji sequences are displayed as multiple characters. Expected results: They should look like one character.
Hello, i can reproduce this issue on Firefox 59.0.2 as well as 61.0a1 (2018-04-24) using Mac OS X (10.12.6).
Status: UNCONFIRMED → NEW
Component: Untriaged → Graphics
Ever confirmed: true
OS: Unspecified → Mac OS X
Product: Firefox → Core
Hardware: Unspecified → x86
Version: 59 Branch → Trunk
Whiteboard: [gfx-noted]
This is because the Apple Color Emoji font depends on AAT shaping (ligatures implemented in the 'morx' table) to create these glyphs from the underlying sequences; but in vertical mode, we always shape through harfbuzz, which doesn't currently (in the version we have in-tree) implement AAT features. We do this because our Core Text back-end doesn't support vertical shaping. So this may well be fixed - or at least should be re-tested - once we've updated to a harfbuzz release that includes AAT support. That may be all it takes to make this work as expected.
Depends on: 1500356
AFAICS this is now fixed: the testcase (https://codepen.io/wemotter/pen/MGYmKy) works in Nightly now that bug 1500356 has landed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: