Open Bug 1320274 Opened 9 years ago Updated 3 years ago

ZWJ at bidi run boundaries do not always have an effect

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

People

(Reporter: khaled, Unassigned)

Details

Attachments

(4 files, 3 obsolete files)

Attached file Test HTML file (obsolete) —
In the attached test file, the same string but different base direction shows different handling of the ZWJ at bidi run boundaries. This is a follow up for https://github.com/w3c/i18n-discuss/issues/2
Attached image Current Firefox rendering (obsolete) —
Attached image Current Chrome rendering (obsolete) —
Firefox and Chrome render the attached HTML differently, and both are wrong IMO.
What versions of Firefox and Chrome are you using? And what OS are you using? It seems to me Firefox and Chrome have the same rendering for the testcase on my machine, and different from the rendering in the images you uploaded. The screenshot is showing Firefox Developer Edition 52.0a2 and Chrome Canary 57 on macOS Sierra. (And I see the same rendering from Firefox 50 and Chrome 54, which are the current release. I'm not familiar with those glyphs. Is this the expected rendering?
Flags: needinfo?(khaledhosny)
Attached file Test HTML file
Attachment #8814326 - Attachment is obsolete: true
Attachment #8814328 - Attachment is obsolete: true
Attachment #8814329 - Attachment is obsolete: true
I think the choice of Arabic letter was a bit unfortunate as some fonts try to be smart and render its isolated form differently. I updated the HTML file and the screenshots to use another Arabic letter. You may also want to install the Amiri font (https://github.com/khaledhosny/amiri-font/releases) to get the same font I’m using (which might be important on Mac since the default Arabic fonts are AAT not OpenType and might behave differently).
Flags: needinfo?(khaledhosny)
From what I’m seeing, it seems that when the base direction is LTR, Firefox applies only the leading ZWJ while Chrome applies only the trailing one. When the base direction is RTL both get applied correctly.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: