If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

UNCONFIRMED
Unassigned

Status

()

Core
Layout: Text
UNCONFIRMED
4 years ago
4 years ago

People

(Reporter: Pravin Satpute, Unassigned)

Tracking

21 Branch
x86_64
Windows 8
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 764573 [details]
Lohit-Devanagari-W8-FF.png

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.
(Reporter)

Updated

4 years ago
OS: Linux → Windows 8

Comment 1

4 years ago
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
You need to log in before you can comment on or make changes to this bug.