Closed Bug 1817366 Opened 2 years ago Closed 2 years ago

Hindi word जनोंके is not rendered well in some places

Categories

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

Firefox 104
x86_64
Windows 10
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: ritesh.s7, Assigned: jfkthame)

References

Details

Attachments

(4 files)

Attached image Shows misalignment

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0;secssobrowser) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Typed जनोंके in the address bar

Actual results:

The maatra over 'ke' was misaligned.

Expected results:

No misalignment

The same issue occurs in Bing and Google search box. When जनोंके is typed, the maatra over के is misaligned.

Surprisingly, it doesn't happen in the Bugzilla textbox.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Places' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Places
Product: Firefox → Toolkit
Component: Places → Layout: Text and Fonts
Keywords: rtl
Product: Toolkit → Core
Component: Layout: Text and Fonts → Graphics: Text

Can confirm this.

Nightly and Chrome appear to have the same behaviour.

The text is rendered correctly on this bug's title and the comment box. Renders incorrectly on the address bar, and the search box on google.com (and other websites like youtibe comments and Whatspaa web)

Can also repro on a build from 2021. So this is not a recent regression.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file about:support

It is also misaligned in Bing and Google search results.

Attachment #9318341 - Attachment description: Shows misalignment in Bing search results → Shows misalignment in Bing search box and results

The anusvara on the preceding syllable (नों) is somehow affecting placement of the e-matra on के; if the anusvara is removed, suddenly the matra on के gets positioned properly.

I tried a number of different Devanagari fonts, and Nirmala UI was the only one where this occurred. So this appears to be a bug in either the Nirmala UI font or possibly in how HarfBuzz handles its OpenType shaping tables.

Keywords: rtl

I checked in Notepad on Win10, and this does not happen there; the matra on के is unaffected by the preceding syllable. As such, I think this is a harfbuzz issue.

-> https://github.com/harfbuzz/harfbuzz/issues/4124.

Assignee: nobody → jfkthame
Severity: -- → S3
OS: Unspecified → Windows 10
Priority: -- → P3
Hardware: Unspecified → x86_64

This should be fixed when harfbuzz 7.0.1 is released and we update to that version.

See Also: → 1816273
See Also: 18162731817854

Looks fine on Nightly now. Fixed by the harfbuzz update.

Status: NEW → RESOLVED
Closed: 2 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: