Open Bug 884682 Opened 11 years ago Updated 2 years ago

HTML lang attribute does not give expected results with FF 21 in Windows

Categories

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

21 Branch
x86_64
Windows 8
defect

Tracking

()

UNCONFIRMED

People

(Reporter: pravin.d.s, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release)
Build ID: 20130516142033

Steps to reproduce:

Version of components used for testing:
Windows 8
Firefox 21
Steps:
1. Install Lohit Devanagari font in Windows 8 from https://fedorahosted.org/releases/l/o/lohit/lohit-ttf-20130130.tar.gz
2. Open http://pravins.fedorapeople.org/lang-feature-testing/Lohit-test.html

Observe the rendering


Actual results:

Actual results http://pravins.fedorapeople.org/lang-feature-testing/Lohit-Devanagari-W8-FF.png



Expected results:

Expected results http://pravins.fedorapeople.org/lang-feature-testing/Lohit-Devanagari-W8-IE.png

Lohit font has language specific rules define. When one write text by specifying lang attribute particular Open Type tables should get executed

Firefox give expected results on Fedora 18 but it fails on Windows.
OS: Linux → Windows 8
There is a similar bug: bug 474182
Component: Untriaged → Layout: Text
Product: Firefox → Core
That's different: bug 474182 is about font selection, whereas this is about language-specific shaping behavior.

Currently, we use Uniscribe or DirectWrite for Indic script shaping on Windows, and we do not support language-specific features via those engines.

If you set gfx.font_rendering.harfbuzz.scripts to -1 in about:config, then all text will be shaped via HarfBuzz, and language-specific features should work. This is not yet the default setting because we want more extensive testing before making that switch, but it is intended to completely replace the Uniscribe and DirectWrite shaping code in the future (bug 797405).
Depends on: 797405
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: