Closed
Bug 590864
Opened 14 years ago
Closed 14 years ago
Poor font antialiasing compared to Firefox 3.6.8 in Ubuntu 10.04 LTS
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 404637
People
(Reporter: mikko.rantalainen, Unassigned)
References
()
Details
Attachments
(4 files)
37.44 KB,
image/png
|
Details | |
33.20 KB,
image/png
|
Details | |
Rendering by official linux i686 Firefox 3.6.8 (32bit executable running on x86_84) from mozilla.com
49.51 KB,
image/png
|
Details | |
30.94 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b5pre) Gecko/20100825 Minefield/4.0b5pre
Font antialising results in poor font rendering in trunk builds. The version I tested was http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-4.0b5pre.en-US.linux-x86_64.tar.bz2 at 2010-08-26 11:19:25.
Reproducible: Always
Steps to Reproduce:
1. Open ftp://ftp.mozilla.org/index.html
Actual Results:
The text on the page is rendered with poor quality. See attached screenshots.
Expected Results:
The text should look equal or better to Firefox 3.6.8.
Correct rendering with Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8.
I'm not sure if the rendering is incorrect in every case or if the Minefield just does not follow system settings for font rendering. The settings I have selected with my Gnome desktop:
System - Preferences - Appearance - Fonts - Details:
Smoothing: Subpixel
Hinting: Medium
Subpixel order: RGB
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
Reporter | ||
Comment 3•14 years ago
|
||
Possibly related to bug 588407
The Minefield clearly tries to do some kind of subpixel antialiasing but the results are far from great.
Reporter | ||
Comment 4•14 years ago
|
||
Possibly related to bug 363861 or bug 579276? (Both on win32, this one on Linux/x86_64.)
Reporter | ||
Updated•14 years ago
|
Version: unspecified → Trunk
Comment 5•14 years ago
|
||
Could be bug 579276. I'm not sure what the story is with antialiasing on Linux.
Reporter | ||
Comment 6•14 years ago
|
||
It seems that bug 579276 is a bit different: on win32 it causes poor antialiasing if position:absolute is used. This bug is about all text rendered with poor antialiasing (the problems seem similar to rendering of bug 579276 but also position:static looks poor).
Comment 7•14 years ago
|
||
I doubt this is related to retained layers or opacity.
The hinting and/or filters look different.
How does a mozilla 3.6.8 build look?
Reporter | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> How does a mozilla 3.6.8 build look?
What is "mozilla 3.6.8 build"?
The Firefox 3.6.8 distributed from Ubuntu repositories renders text identical to "native" gnome applications. For example, the label "Help" in the main menu looks identical to label "Help" in Gnome gcalctool (Gnome calculator) or Gnome Character Map. The rendering in trunk minefield does not match and results in poor quality display. See the attached screenshots and bug description for details. Note that the poor rendering affects both content and chrome.
Comment 9•14 years ago
|
||
Ubuntu builds typically have Ubuntu customizations, the same customizations as in other Gnome apps on Ubuntu.
Minefield/4.0b5pre would not have these.
There are possibly other factors involved here, but first I want to know whether there is a regression in builds from Mozilla (without Ubuntu tweaks).
Such 3.6.8 builds are available from http://www.mozilla.com/.
Comment 10•14 years ago
|
||
Since b5pre, D2D and DW are enabled by default.
You can disable HW acceleration in Options > Advanced > General.
Is the font rendering OK with HW acceleration disabled ?
Could you provide the graphic info in the "about:support" page ?
Component: General → Graphics
Product: Firefox → Core
QA Contact: general → thebes
Comment 11•14 years ago
|
||
> Since b5pre, D2D and DW are enabled by default.
How could that possibly affect anything on Ubuntu?
Reporter | ||
Comment 12•14 years ago
|
||
Reporter | ||
Comment 13•14 years ago
|
||
(In reply to comment #9)
> Ubuntu builds typically have Ubuntu customizations, the same customizations as
> in other Gnome apps on Ubuntu.
> Minefield/4.0b5pre would not have these.
>
> There are possibly other factors involved here, but first I want to know
> whether there is a regression in builds from Mozilla (without Ubuntu tweaks).
>
> Such 3.6.8 builds are available from http://www.mozilla.com/.
OK. I checked the default version suggested by mozilla.com and I got 32 bit build for linux as firefox-3.6.8.tar.bz2. See the attached screenshot (running on Ubuntu 10.04 LTS x86_64 with 32 bit support libraries). It seems that the rendering looks the same as with 4.0b5pre and the poor rendering quality is caused by not applying the fixes added by Ubuntu.
Conclusion: there is no linux regression between 3.6.8 and 4.0b5pre.
I'd prefer mozilla to adopt the fixes from Ubuntu to honor Gnome appearance settings for font subpixel rendering, but unless this bug gets morphed for that, I think this bug should be closed.
Reporter | ||
Comment 14•14 years ago
|
||
I checked the patches applied to Ubuntu builds and it seems that Ubuntu applies patch "lp512615_cairo_lcd_filter.patch" that fixes bug 404637. As a result, this should probably be marked as duplicate of bug 404637.
See also:
https://bugzilla.mozilla.org/show_bug.cgi?id=404637
http://bugs.freedesktop.org/show_bug.cgi?id=10301
https://bugs.launchpad.net/bugs/512615
Reporter | ||
Comment 15•14 years ago
|
||
I haven't tried to build firefox with this patch but I believe this is the patch that Ubuntu uses to improve font rendering with cairo. I'm not sure about the license of this patch.
Getting the source in Ubuntu: apt-get source firefox, see subdirectory debian/patches after executing that command.
Reporter | ||
Comment 16•14 years ago
|
||
Looking at the patch, perhaps the issue could be missing "(options->hint_style << 12)" in antialias options (https://bugzilla.mozilla.org/attachment.cgi?id=471775&action=diff#mozilla/gfx/cairo/cairo/src/cairo-font-options.c_sec6) ? It could be that without the patch, the hint_style is not correctly initialized to user preferences, either.
Comment 17•14 years ago
|
||
Thanks for investigating and reporting back.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 18•14 years ago
|
||
(In reply to comment #16)
> Looking at the patch, perhaps the issue could be missing "(options->hint_style
> << 12)" in antialias options
I'm guessing that's just changed from "<< 8" to make room for options->lcd_filter.
Bug 404637 would be the place to discuss this, but Mozilla builds will probably have lcd_filter support when upstream cairo does.
You need to log in
before you can comment on or make changes to this bug.
Description
•