Inconsistent kerning in Firefox

Bug #343389 reported by Anders Kaseorg
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: firefox

The attached webpage has two lines of equal length that say AVAVAVAV…AV. The second line has a ™ symbol appended to it. In Firefox, the first line is displayed with greater letter spacing than the second line. It seems that only the second line has kerning applied to it.

Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
Anders Kaseorg (andersk) wrote :
Anders Kaseorg (andersk)
Changed in firefox:
status: New → Invalid
Revision history for this message
j.scott.gwin@gmail.com (j.scott.gwin) wrote :

Thank you for reporting your problem, it helps us make Ubuntu better. Does Firefox render other pages properly? I don't think the problem is in Firefox, It looks like the webpage was designed improperly. How can we reproduce the error here?

Revision history for this message
Geoffrey Thomas (geofft) wrote :

Confirmed; same issue on Firefox 3.0.6, Intrepid, defaulting to DejaVu Sans, under xmonad with no GNOME or msttcorefonts.

This doesn't seem like a problem with the web page's design to me; it's a very straightforward example. I do wonder if the same kerning issue is present in other programs that render text, though.

Changed in firefox-3.0:
status: New → Confirmed
Revision history for this message
Anders Kaseorg (andersk) wrote :

To reproduce the problem, open the above attachment kerning-test.html in Firefox 3.0 or 3.1 on Intrepid or Jaunty (haven’t tried earlier versions).

The real webpage on which I first noticed this problem is <http://www.ksplice.com/cve-evaluation>, which renders the column of “Yes”s with inconsistent spacing.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Maybe i dont understand the problem. If loading the site
http://www.ksplice.com/cve-evaluation
gives a problem or not. See my screenshot.
As for the
http://launchpadlibrarian.net/23892929/kerning-test-screenshot.png
I am unable to reproduce anywhere but in the screenshot.
Can you please give me a screenshot of the page itself showing up wrong?
I am using
gnomefreak@Development:~$ policy firefox-3.1 firefox-3.2 abrowser
firefox-3.1:
  Installed: 3.1~b4~hg20090315r23780+nobinonly-0ubuntu1~umd1
  Candidate: 3.1~b4~hg20090315r23780+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.1~b4~hg20090315r23780+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status
     3.1~b3+build2+nobinonly-0ubuntu1 0
        500 http://gb.archive.ubuntu.com jaunty/universe Packages
     3.1~b3+build2+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
firefox-3.2:
  Installed: 3.2~a1~hg20090315r26208+nobinonly-0ubuntu1~umd1
  Candidate: 3.2~a1~hg20090315r26208+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.2~a1~hg20090315r26208+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status
     3.2~a1~hg20090127r24317+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
abrowser:
  Installed: 3.0.7+nobinonly-0ubuntu1
  Candidate: 3.0.7+nobinonly-0ubuntu1
  Version table:
 *** 3.0.7+nobinonly-0ubuntu1 0
        500 http://gb.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

and i am unable to reproduce with the info given

Revision history for this message
Anders Kaseorg (andersk) wrote :

John: your screenshot bug#343389.png does show the problem. Look carefully at the column of “Yes”s, and you will see that the “Y”s are all aligned, but the “es”s are misaligned: there is a difference of one pixel between the rows that say “Yes” and the rows that say “Yes—with additional code”.

The kerning-test.html is a minimal test case that demonstrates a more extreme version of the problem. In a correct rendering, the two rows of AVAVAVAV…AV would be the same width (excluding the ™); the bug shown in my screenshot is that the first row has greater spacing and is thus wider.

Changed in firefox-3.1:
status: New → Confirmed
Changed in firefox:
status: Invalid → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

Firefox 2.0 will not get this fix since it is EOLS
I am looking closer at it.
What font and theme are you using?

Changed in firefox (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
John Vivirito (gnomefreak) wrote :

What screen res are you using?
I dont see the problem in my screenshot but i'm asking a few others to tell me if they see it (maybe a new set of eyes will help.

Revision history for this message
John Vivirito (gnomefreak) wrote :

ok the ones that are not aligned right are the "Yes" with the -- extra wording?
Thats the only thing i can see that would be around what you mean

Revision history for this message
brendon (brendon-schu) wrote :

I can help confirm this, as an experience web developer I know these things.

I'm attaching 2 images which demonstrate the problem clearly.

image: webpage.png
This shows the webpage as seen through the browser, and you can see that the first line is MUCH longer than the second line.

image: html.png
This shows the html source for the same webpage in raw text format, and you can see that the 2 lines end in exactly the same place.

It's clear that the browser is processing the first line differently than the second.

My test was done using Firefox 3.0.7 in Hardy.

Revision history for this message
brendon (brendon-schu) wrote :

and the 2nd attachment

Alexander Sack (asac)
affects: firefox-3.1 (Ubuntu) → firefox-3.5 (Ubuntu)
Revision history for this message
Alexander Sack (asac) wrote :

this kind of issue doesn't qualify for the update policy for stable mozilla products; closing firefox-3.0 part won't fix.

Can you please verify that this is still an issue in latest jaunty firefox-3.5?

Changed in firefox-3.0 (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Anders Kaseorg (andersk) wrote :

Yes, it’s still an issue in Jaunty firefox-3.5.

I found a workaround, which is to set browser.display.auto_quality_min_font_size=0 in about:config. Apparently this bug is an artifact of a performance hack? I wonder if auto_quality_min_font_size=0 is fast enough to be the default.

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

Can anyone test if this problem still happens in recent versions of Firefox?

no longer affects: firefox-3.0 (Ubuntu)
no longer affects: firefox-3.5 (Ubuntu)
Changed in firefox (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for firefox (Ubuntu) because there has been no activity for 60 days.]

Changed in firefox (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.