bugFree UCS Outline Fonts - Bugs: bug #38842, Sans Devanagari in modern browsers


bug #38842: Sans Devanagari in modern browsers

Submitted by:  Steve White <Stevan_White>
Submitted on:  Sun Apr 28 17:14:00 2013  
Category: NoneSeverity: 3 - Normal
Item Group: character substitution issueStatus: Fix posted
Privacy: PublicAssigned to: Steve White <Stevan_White>
Open/Closed: OpenRelease: development

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Tue Apr 30 09:25:27 2013, comment #13:

I have just tried r2548 in Fedora 17. It works even with gfx.font_rendering.harfbuzz.scripts=-1.

Zdenek Wagner <icebearsoft>
Mon Apr 29 23:46:39 2013, comment #12:


Please go ahead and post any further problems that you think are appropriate to this report, so long as they have to do with Devanagari on Harfbuzz.

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Mon Apr 29 21:49:59 2013, comment #11:

Sorry for comment #10, I forgot to run fc-cache. FreeSans now works even with the default value -1.

Zdenek Wagner <icebearsoft>
Mon Apr 29 21:09:10 2013, comment #10:

With freefont r. 2548 it is much worse, even FreeSerif ceased to work. Wrong characters are displayed. See the attached snapshot. I will try in Fedora 17 in my office.

(file #27981)

Zdenek Wagner <icebearsoft>
Mon Apr 29 20:40:49 2013, comment #9:

I will try soon. What I wrote a few hours ago was tested in Fedora 17. Now I tried the same in Fedora 18 and I did not managed to make FreeSans work. rpm reports that I have harfbuzz-0.9.12-2 on Fedora 18 but in Fedora 17 rpm does not find harfbuzz at all. yum sees harfbuzz-0.6.0-5 in base fedora and harfbuzz-0.9.11-1 in updates. Thus I do not understand what's going on in Fedora 17.

Zdenek Wagner <icebearsoft>
Mon Apr 29 17:17:01 2013, comment #8:

Zdenek, I just submitted some changes to Sans and SansBold that fixed the test file you gave me, but I have done no further tests with it.

I'll have a look in the tests I have at hand. Could you do so as well, please?

About the magic settings... you might want to mention that to Johnathan. These have been an absolute nightmare for me. A little plain text up-to-date documentation (explaining the present state, and when things have changed) would go a long way toward aiding the rest of the community.

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Mon Apr 29 16:02:49 2013, comment #7:

Firefox (or harfbuzz) certainly does not obey the shaping rules as defined in the document you pointed. Value -1 should mean everything but it apparently does not. I OR'ed the bits and tried values 127 and 255 and the result is wrong. All the values from 1 to 16 work. I tried other values as 24, 30, 31 and it works too. Value 32 should switch indic on but in such a case the result is wrong, similarly if I try 33 and 34. Value 95 should mean everything but indic but with this value rendering is correct. Thus it seems to me that interpretation of the "indic" bit is exactly opposite. FreeSerif works fine with any value.

Zdenek Wagner <icebearsoft>
Mon Apr 29 13:29:31 2013, comment #6:

OK, now I see it.

With the default setting of -1 of the gfx.font_rendering.harfbuzz.scripts, the ligatures misbehave.

Johanathan Kew explained to me some time ago what these values mean, they're defined in the JavaScript fiel: http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js

-1 (the default) means to use Harfbuzz; the only other meaningful value is now 7.

My guess is, I switched mine for testing some years ago (when Harbuzz was in rather early development), and never switched it back.


Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Mon Apr 29 12:16:42 2013, comment #5:

about:config attached. Changing gfx.font_rendering.harfbuzz.scripts to 1 (from -1) helped even without firefox result.

(file #27976)

Zdenek Wagner <icebearsoft>
Mon Apr 29 11:58:44 2013, comment #4:

Hi Zdenek,

Attached find what I see in my Mozilla 20.0 running on Ubuntu 12.10. I think the virama-ra ligatures are right.

Like you, I'm using a build from the latest SVN of FreeFont.
So what's the difference?

Could you point your browser to
search for 'gfx' there, and send me a screenshot?

(In particular, my setting for
is set to 1. Maybe a re-start is required for this setting to take effect.)

(file #27974)

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Mon Apr 29 08:47:29 2013, comment #3:


Would you please send me or post the HTML file you used?

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Sun Apr 28 23:00:26 2013, comment #2:

It is the same in Fedora 17 and Fedora 18, both contain firefox 20.0

Zdenek Wagner <icebearsoft>
Sun Apr 28 17:16:34 2013, comment #1:

I need to know which OS, and which versions of the OS you are using.

I'm not very surprised Sans isn't working in modern environments. Most of the effort in accommodating recent changes to font standards has been spent on Serif.

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Sun Apr 28 17:14:00 2013, original submission:

Zdenek Wagner wrote...

as Jonathan Kew suggested, I have installed his fontinfo plugin in
order to see why Devanagari does not work in gmail and facebook. I
have discovered that FreeSerif works but FreeSans not. All
"consonant+virama+ra" ligatures are wrong in FreeSans but correct in
FreeSerif. It was tested with svn revision 2525 and firefox 20.0.
Attached you will find the test file and my screenshot.

Steve White <Stevan_White>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #27974:  vatu-mine.png added by Stevan_White (101kB - image/png - same HTML file viewed on my system -- shows ligatures)
file #27972:  vatu.html added by icebearsoft (765B - text/html)
file #27967:  vatu.png added by Stevan_White (82kB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by icebearsoft (Posted a comment)
  • -unavailable- added by Stevan_White (Submitted the item)
  • -unavailable- added by Stevan_White

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Apr 29 21:09:10 2013icebearsoftAttached File-=>Added vatu-r2548-fedora18.png, #27981
    Mon Apr 29 17:17:01 2013Stevan_WhiteStatusNeed info=>Fix posted
    Mon Apr 29 12:16:42 2013icebearsoftAttached File-=>Added zw-about-config.png, #27976
    Mon Apr 29 11:58:44 2013Stevan_WhiteAttached File-=>Added vatu-mine.png, #27974
    Mon Apr 29 09:08:01 2013icebearsoftAttached File-=>Added vatu.html, #27972
    Sun Apr 28 17:16:34 2013Stevan_WhiteStatusNone=>Need info
    Sun Apr 28 17:14:00 2013Stevan_WhiteAttached File-=>Added vatu.png, #27967
      Carbon-Copy-=>Added zdenek wagner

    Back to the top

    Powered by Savane 3.1-cleanup1