Bug 140902 - layout issue in some web pages with pango enabled
Summary: layout issue in some web pages with pango enabled
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: firefox
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Christopher Blizzard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 158511
TreeView+ depends on / blocked
 
Reported: 2004-11-26 08:09 UTC by Lawrence Lim
Modified: 2014-03-26 00:51 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-23 06:12:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
latest version of firefox. (235.70 KB, image/png)
2004-11-26 08:11 UTC, Lawrence Lim
no flags Details
firefox with no pango enabled. (319.79 KB, image/png)
2004-11-26 08:12 UTC, Lawrence Lim
no flags Details
simpiler test case for above steps (798 bytes, text/html)
2004-12-06 07:11 UTC, Leon Ho
no flags Details

Description Lawrence Lim 2004-11-26 08:09:12 UTC
Description of problem:
With pango enabled, firefox is unable to display the layout properly
in some web pages.

Version-Release number of selected component (if applicable):
firefox-1.0-4.EL4

How reproducible:
Always

Steps to Reproduce:
1.LANG=zhTW.UTF-8 firefox
2.gp to the following URL, http://tw.news.yahoo.com/
3.
  
Actual results:
layout is not displayed properly. pls see screenshot

Expected results:
should be display properly. pls see screenshot with older version of
firefox with no pango enabled.

Additional info:
Try with firefox-0.10.1-1.0PR1.20, the layout is displayed properly.
However, if I use LANG=zh_TW MOZ_ENABLE_PANGO=1 firefox, i get the
same result as the current version of firefox

Comment 1 Lawrence Lim 2004-11-26 08:11:31 UTC
Created attachment 107474 [details]
latest version of firefox.

Marked the area with the layout problem

Comment 2 Lawrence Lim 2004-11-26 08:12:52 UTC
Created attachment 107475 [details]
firefox with no pango enabled.

Comment 3 Christopher Aillon 2004-11-26 09:55:28 UTC
->blizzard, the man with the pango.

Comment 4 Christopher Blizzard 2004-11-29 20:04:56 UTC
Is it possible for you to get that down to a very small test case?

Comment 6 Leon Ho 2004-12-06 07:11:12 UTC
Created attachment 107931 [details]
simpiler test case for above steps

Comment 7 Leon Ho 2004-12-06 07:17:27 UTC
It works in en_US.UTF-8 but does not work in zh_TW.UTF-8, ja_JP.UTF-8
etc, so it may be some different fonts with width calculation issue.


Comment 8 Warren Togami 2004-12-11 21:00:06 UTC
With en_US.UTF-8 I am seeing the bad layout in the
http://tw.news.yahoo.com/ but not in llch's simpler test case.

Comment 10 Warren Togami 2004-12-11 21:23:29 UTC
Furthermore, I suspect this may only be a case of bad HTML.  Good HTML
would not make assumptions about font size.  If you shrink the font by
one point (use CTRL--) the layout corrects itself.

For this reason I really see no good reason for blocking pango by
default.  Please reconsider for RC... or at least GA.

Comment 12 Jens Petersen 2005-03-18 10:21:19 UTC
This appears to be fixed in fc4test1 at least. :)

Comment 14 Lawrence Lim 2005-05-23 06:12:09 UTC
Pango has only been enabled for indic locales in EL4, hence, the bug is no
longer relevant. However, in FC4, firefox-1.0.4-2, where pango is enabled by
default, I still see layout issue in some web pages.

Closing this bug and created Bug 158511 for tracking the issue in FC.


Note You need to log in before you can comment on or make changes to this bug.