Closed
Bug 439862
Opened 18 years ago
Closed 5 years ago
Fonts rendering bolder in FF3 compared to FF2 on OS X 10.5
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: matt, Unassigned)
Details
Attachments
(11 files, 3 obsolete files)
|
32.02 KB,
image/jpeg
|
Details | |
|
183.33 KB,
image/png
|
Details | |
|
158.77 KB,
image/png
|
Details | |
|
135.82 KB,
image/png
|
Details | |
|
130.68 KB,
image/png
|
Details | |
|
49.59 KB,
image/png
|
Details | |
|
966 bytes,
text/html; charset=iso-8859-1
|
Details | |
|
1.14 KB,
text/html
|
Details | |
|
742 bytes,
text/html
|
Details | |
|
219.07 KB,
image/png
|
Details | |
|
113.09 KB,
image/png
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
This has become an extremely frustrating problem. While Safari supports the text-shadow selector, Firefox 3 does not. With the new font rendering engine, fonts appear bold even when they have a normal font-weight attribute in CSS. This is most apparent with light text on dark backgrounds. I've managed to circumvent the issue in Safari 3 by using the text-shadow property, however, Firefox 3 does not support text-shadow and therefore my page headings are nearly unreadable because Firefox 3 on the Mac is rendering the fonts bold, when again, they are not bold. The font renders perfectly in Firefox 3 on PC. This seems to be a Mac OS X specific bug. This was not an issue with Firefox 2 on Mac OS X. Please help, this is a nightmare.
Reproducible: Always
Steps to Reproduce:
1. Go to a website such as http://www.seobook.com/ (I cannot list the specific site as it is a client's website)
2. Look at the main green and blue headings: "Learn. Rank. Dominate." and "Want to Learn SEO Today?".
3. Notice how in Mac OS X Firefox 3, the fonts are fatter and harder to read. They almost appear blurred and bolded. Then look at the same website on Firefox 3 PC (Vista, XP, doesn't matter). The font is much easier to read and appears to be rendered normally (no bold effect).
Actual Results:
The fonts in Firefox 3 on Mac OS X were considerably bolder and blurrier than on Firefox 3 for the PC (on Vista or XP). The font-weight attribute is set to normal so there is no reason that these fonts should be rendering as bold.
Expected Results:
The fonts should be rendering normal on Mac OS X, but instead they look bold.
This has caused a serious problem for my web design company. A number of our websites are suffering from this bug. Please do your best to look into it as we are really in need of a fix. It worked fine on Firefox 2.
Comment 1•18 years ago
|
||
You're actually relying on default behavior. The default font size in FF3 was changed from 14px to 16px to better match Safari, that's what you're seeing. If you really feel the font is "too bold", then you should probably specify an explicit size of 14px on the body and apply the font-size: 62.5% to a containing element.
And rather than Arial, Helvetica Neue would be a far better choice for OS X, Arial is rather poor imitation of Helvetica:
font-family: Helvetica Neue, Arial, sans-serif;
Updated•18 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Here is an example from our website. As you can see, there is a noticeable difference in the font-weight. No matter what font we choose, whether it be Trebuchet MS (in example), Helvetica Nue, or anything - they all show up exactly the same - extra bold in FF3.
Granted, for Safari we are using the text-shadow: #FFF 0 0 0; attribute in the CSS style sheet, since without this attribute, the text looks exactly the same in both FF 3 and Safari. however, we can't find a fix for Firefox 3. This shouldn't be normal. As you can see in the attached image, the difference from Firefox 2 to Firefox 3 is quite noticeable and has again, completely thrown off the look and feel of our website.
If you test this problem in Opera 9.5 for OS X, you will find the same result that both Safari and Firefox 1.3 for OS X have. Again, the text is extra bolded - much bolder than it is in in Firefox on the PC. Again, we used a text-shadow selector in the style sheet to make the text look "as it should", but that attribute does not seem to work in Opera 9.5 and the text-shadow selector is not supported in the 1.3 build of Firefox. We even downloaded the pre-alpha version of Firefox 1.31, and although text-shadow is support, the problem still did not see to be fixed.
We're really struggling on this one.
Comment 3•18 years ago
|
||
Does the attached simplified testcase exhibit this behavior? I'm seeing the same behavior in Safari, FF2 as in FF3.
If it doesn't for you, please attach a simplified testcase where you see this behavior (i.e. FF3 shows bold where Safari/Opera does not).
John -
Here is the current scenario: All 3 browsers, Firefox 3 (MAC), Opera 9.5 (MAC), Safari 3 (MAC) have much bolder text than Firefox 2 did. When I apply the text-shadow selector to the style sheet with attributes of: #FFF 0 0 0; , the bolded text issue is fixed in Safari 3.0 (MAC). However, the problem still is there in Firefox 3 (MAC) and Opera 9.5 (MAC).
We used the following short tutorial to work around the issue in Safari (the text-shadow that I just listed): http://24ways.org/2006/knockout-type
Since this problem is does not occur in any browsers on the PC nor does it occur on Firefox 2 for the Mac, we have deduced that Opera 9.5 (MAC), Safari 3.0 (MAC), and Firefox 3 (MAC) must all share a common bond. What would this be? What has changed from Firefox 2 to Firefox 3 with the font rendering? We need a workaround or fix for Firefox 3 (MAC) equivalent to the fix listed above for Safari 3 (MAC).
I've included our website simply because it seems to exaggerate the problem more than the previously listed website: http://www.chromaticsites.com/about-us-chromatic-sites.php Notice the white text on the blue background near the top. Compare this text in Firefox 2 (MAC) to Firefox 3 (MAC). Notice how the text is incredibly bold? Like I said, we have made sure to set font-weight: normal; to that div; however, it doesn't help.
Comment 5•18 years ago
|
||
Comment 6•18 years ago
|
||
screenshot shows Safari 4 dev, Webkit nightly, FF3, Opera 9.5
FF3 appears a tad less bold than the others, probably due to the text-shadow applied.
body { opacity: 0.99999; text-shadow: #FFFFFF 0 0 0; }
Opacity 0.9999 doesn't make a whole lot of sense unless you're trying to work around some bug.
Updated•18 years ago
|
Attachment #325675 -
Attachment description: screenshot, funky bolding across browsers → screenshot, funky bolding across browsers, 10.5.3
Comment 7•18 years ago
|
||
Under 10.4, don't see the same level of bolding.
screenshot shows Safari 3.1, Opera 9.5, FF3
John -
Are you referring to OS X 10.4? Are we able to deduce anything from these testcases? If so, what? I really appreciate what you are doing.
Comment 9•18 years ago
|
||
(In reply to comment #8)
> Are you referring to OS X 10.4?
Yes.
> Are we able to deduce anything from these
> testcases? If so, what? I really appreciate what you are doing.
There appears to be a difference in the way Trebuchet MS is rendering on 10.4 vs. 10.5. This testcase shows Trebuchet MS with and without bolding so it's pretty clear you're seeing rendering behavior with the normal face, not the bold face. It might be a difference in the way the font server is rasterizing the font or it could be a difference in the underlying font itself, 10.5.3 ships with version 5.00, 10.4 ships with 1.15 (with a font selected in FontBook, Preview > Show Font Info). Another possibility is that there's something in the hinting that's recognized by font code in 10.5 but not in 10.4.
I would definitely say test without text-shadow because that adds to the problem.
Updated•18 years ago
|
Attachment #325686 -
Attachment mime type: text/html → text/html; charset=iso-8859-1
| Reporter | ||
Comment 10•18 years ago
|
||
The thing is that no matter what font we use in that box, we get the same result: the font is much bolder in FF3 (MAC) than it is in FF2 (MAC) as well as any browser on the PC.
Regarding testing without text-shadow: if text-shadow is removed from the body { }; then the only thing that changes is that Safari 3.0 (MAC) has the same problem as FF3 (Mac) and Opera 9.5 (Mac). The reason text-shadow was there in the first place was to fix this bolded text problem in Safari 2+, which it did. It does not, however, fix the problem in Opera 9.5 (MAC) or FF3 (Mac).
Again, FF2 (MAC) never suffered from this rendering bug.
| Reporter | ||
Comment 11•18 years ago
|
||
Please, by all means, feel free to remove the text-shadow and the opacity selectors from the testcase. Like I said, I only have them in there because by using text-shadow, it fixed this bolding problem in Safari (MAC) - but only Safari and not FF3 (MAC) nor Opera 9.5 (MAC).
Updated•18 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Updated•18 years ago
|
Summary: Larger fonts are rendered bold in Mac OS X FF3 even if they are not bold; usability nightmare → Fonts rendering bolder in FF3 compared to FF2 on OS X 10.5
Updated•18 years ago
|
Assignee: nobody → jdaggett
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 12•18 years ago
|
||
Comment 13•18 years ago
|
||
On 10.4, FF2 and FF3 render the same way but on 10.5 FF3 appears bolder. Note that FF3 renders the same as Opera/Safari so this is probably related to some funky Quickdraw (FF2) vs. CoreGraphics (FF3) difference.
Argh, we have angered the Apple gods, we must remember to leave fruit at their spirit house next time...
| Reporter | ||
Comment 14•18 years ago
|
||
John -
Haha, It is nice to hear some humor in a stressful situation such as this one. Is there anything the Mozilla team can do to get this fixed for the next 3.1 release? I can't imagine Mac people not noticing this (you know how those Mac purists can be when it comes to their fonts). Is there any hope of a resolution? I feel like I'm out of options here and that it is all up to Mozilla at this point. Oh divine CSS hack, wherefore art thou?
Comment 15•18 years ago
|
||
Comment 16•18 years ago
|
||
(In reply to comment #14)
> Is there any hope of a resolution? I feel like I'm out of options here
> and that it is all up to Mozilla at this point. Oh divine CSS hack,
> wherefore art thou?
Safari shows similar wackiness, 10.4 to 10.5, so I think this is probably an OS-level problem. Need to do some more experimentation though before reporting this. There's no CSS hack in the world to force drawing via Quickdraw on 10.5...
The rendering of bold Trebuchet MS just looks *completely* wrong in Safari. But there's an art to logging bugs with Apple/Webkit, it's easy to log problems that are completely ignored if they don't have special sauce included with them.
| Reporter | ||
Comment 17•18 years ago
|
||
I agree, it does look completely wrong in Safari (and FF3 for that matter). Is there anything else you need me to do or should I just let you run some additional tests and see what you come up with?
Thanks John.
Comment 18•18 years ago
|
||
Attachment #325539 -
Attachment is obsolete: true
Attachment #325659 -
Attachment is obsolete: true
Attachment #325686 -
Attachment is obsolete: true
Comment 19•18 years ago
|
||
Definitely some sort of Apple bug I'm afraid. At this point, FF2, FF3, and Safari all render the simplified testcase with no text-shadow the same way, with funky bolding. I've tried clearing out the font caches by rebooting into safe mode, I've manually whacked the contents of /private/var/folders/ to clean out ATS-related caches, all to no avail, I still get the funky bolding.
If I create a new account however, both FF3 and Safari render the page just fine.
We probably need to get some guidance from Apple as to what we should look for in order to track this down. Josh, I'll contact you about this.
Matt, could you try creating a new account and test with the attached testcase? Test with Safari first, as it would be good to show that this isn't purely connected to FF3.
| Reporter | ||
Comment 20•18 years ago
|
||
John -
I did as you instructed and created a brand new Admin account under OS X 10.5. I then proceeded to launch both Safari and FF3, accessing your latest testcase (id 325707) with each browser. Both of these browsers yield the same results: extreme bolding, even with the "pageIntro" text (top example) which has font-weight: normal; applied to it. I also ran the same test in Opera 9.5 and experienced exactly the same results found in Safari and FF3 on 10.5 under the new account.
Please let me know if I can do anything else to help. Thank you for taking this seriously.
Comment 21•18 years ago
|
||
This problem is an artifact of the font smoothing setting, set font smoothing to Strong and you'll see the problem, set it to Standard to see it render more "as expected". Same holds for both Safari and FF3.
The workaround is to set opacity=0.999, because this effectively forces the text to be rendered to an offscreen first and then composited onto the background. This will eliminate the behavior you don't like. I would only set this for elements where it is absolutely needed, since using an opacity other than 1 a composite operation that will cause a performance hit for a large page.
With font smoothing set to Strong, notice the differences on the first line, text rendered with opacity=0.999 does not appear as bold as the other text.
Comment 22•18 years ago
|
||
Marking this as invalid, since it reflects intended system behavior and is not a bug in FF3.
Status: NEW → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 23•18 years ago
|
||
John -
Just curious: when I apply opacity: 0.999 to a div, it doesn't properly "fix" the text inside of that div; however, when I add the span tags around the text within that same div and assign opacity: 0.999; to the span tag of that div, it works correctly. Any idea why this only seems to work with the span tag and not the parent div? Is there a work around for that?
Oh, did I tell you that you're awesome. THANK YOU (caps because I'm screaming, you've saved us)
| Reporter | ||
Comment 24•18 years ago
|
||
John -
Please disregard the last question - the answer doesn't really matter. It turns out that by wrapping some of the problematic elements with span tags, the opacity tones down the boldness in all browsers on OS X.
Thank you again for your time and for assisting me. I am truly impressed by you and the Mozilla team.
Firefox 3 is awesome. Huge improvement over Firefox 2. Great work!
-Matt
Resolution: INVALID → WORKSFORME
Comment 25•18 years ago
|
||
(In reply to comment #23)
> the text inside of that div; however, when I add the span tags around the text
> within that same div and assign opacity: 0.999; to the span tag of that div, it
> works correctly. Any idea why this only seems to work with the span tag and not
> the parent div? Is there a work around for that?
Not quite sure about this but keep in mind that opacity is a tad unusual in that it does *not* inherit, so you probably will always need to apply this to the innermost element, the element containing the text rather than parent elements.
| Reporter | ||
Comment 26•18 years ago
|
||
John -
Although opacity: 0.999 has provided some sort of a solution, the text with the opacity attribute applied to it is jagged and it still isn't how it looks natively in Firefox 2 (MAC).
Can you please explain to me why Firefox 2 (MAC) looks perfect and doesn't seem to suffer from this bolding problem? What is different between Firefox 2 (MAC) and Firefox 3 (MAC) that would cause them to look different?
Unfortunately, this is a bigger problem than I anticipated. Because our website is not correctly rendering in Firefox 3, our clients are seeing an inaccurate representation of our website. The biggest dilemma here is that most of our clients use the Firefox (MAC) browser. I'm afraid this issue is going to affect our business and I just need to try to understand why Firefox 2 (MAC) looks perfect without an opacity or text-shadow application?
Thanks John
Resolution: WORKSFORME → INVALID
Comment 27•18 years ago
|
||
Yeah, I've seen the same strange behavior you're seeing. One of the screenshots I tried in FF2 drew "normally" compared to Safari, Opera, FF3. But after playing around with this for a while, FF2 somehow switched to bolder versions.
This is really a system-level issue but maybe there's something we can do in the future to work around this problem. I'm going to reopen this but I'm sorry I don't have any magic workarounds other than what I've already mentioned. If your clients are sensitive to this, you're probably better off using PNG images where you can guarantee the pixel-level quality. That shouldn't be the solution but...
Comment 28•18 years ago
|
||
I'm reopening this in case there's a way we can swizzle around this problem with some CoreGraphics font smoothing setting.
Similar complaints with Safari:
http://jonnotie.nl/blog/fix-the-bad-text-rendering-in-safari/
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 29•18 years ago
|
||
Based on text here:
http://jonnotie.nl/blog/fix-the-bad-text-rendering-in-safari/
Comment 30•18 years ago
|
||
Screenshot shows the results with the font smoothing setting set to Strong in the Appearance panel. The text above is rendered in FF3, the text below in my debug build with CAIRO_ANTIALIAS_GRAY set via cairo_font_options_set_antialias in gfxAtsuiFontGroup::gfxAtsuiFontGroup.
Within the Cairo code, this effectively disables font smoothing but not anti-aliasing in general:
case CAIRO_ANTIALIAS_GRAY:
CGContextSetShouldAntialias (surface->cgContext, TRUE);
CGContextSetShouldSmoothFonts (surface->cgContext, FALSE);
Options:
- add prefs option for this but this will only solve the problem on the user's side
- add something like -moz-font-smoothing with [auto, disable] to work around this
Since this doesn't occur on 10.4, I'm guessing that somehow the display driver code is not handling "Automatic" correctly and forcing it to Strong.
Note: the text will display "normally" with the font smoothing setting set to Standard. Automatic works on my machine but that may not be the case for others.
This is clearly an Apple bug.
FF2 is different because it used Quickdraw to render text.
Comment 32•18 years ago
|
||
John,
There must be something more than just the font-smoothing thing. On the aluminium iMac here, setting it to 'auto' or to 'light' gives a noticeable difference for dark text on light background (idem ditto for 'strong'). However, the same cannot be said for the situation at hand here: dark background/light text. I cannot see any difference between any of the 3 settings (ok, maybe if I go starting counting pixels with Pixie :-)).
Set to 'standard', the dark-on-light text looks crap, whereas the light-on-dark text has a near normal look (close to the dark-on-light with 'light' setting above).
WebKit and Minefield builds used.
Comment 33•18 years ago
|
||
Comment 34•18 years ago
|
||
Comment on attachment 343143 [details]
screenshot, Firefox 3 on the left, Safari 3 on right
><HTML><BODY><IMG width="287" src="https://bugzilla.mozilla.org/attachment.cgi?id=343143" alt="https://bugzilla.mozilla.org/attachment.cgi?id=343143" style="cursor: -moz-zoom-in;"/></BODY></HTML>
Hi, I uploaded this screenshot because I think it belongs to this bug, but I'm not sure. On the left is Firefox 3, and it looks like it's broken. The text looks a little bolder and bigger. This screenshot is from forums.anandtech.com
Current consensus is that the bug is an OS level problem, correct? I think so too since webkit makes the text look bolder though not bigger. It's quiet evident on slashdot. What's odd is that safari 3 doesn't have this problem.
Comment 35•17 years ago
|
||
I seem to be experiencing the same problem in FF3 running on openSUSE 11.0 (Linux). It is very strange. In the Web pages I created, I am using a base font-size of 12pt (Arial) for normal document text, and smaller 9pt (also Arial) for blockquotes and menu list items. Although all have the same font-weight (i.e., normal); the 12pt appears bolded, while the 9pt in the blockquotes does not. However, the 9pt menu font, although not bolded, appears oversized. For me, this does not happen in Windows XP or Vista, or in openSUSE 10.2.
However, the fonts all appear their normal size and weight (as compared to Opera, and FF running on other machines) when I zoom out once. It therefore appears that the default magnification factor is the problem, not the font weight.
-Karl
Comment 36•17 years ago
|
||
I am also experiencing the exact same problem in Konqueror for KDE 3.5 in openSUSE 11.0; it also uses Gecko. Again, when I shrink the font once, everything appears normal.
-Karl
Konqueror doesn't use Gecko.
Comment 38•17 years ago
|
||
My apologies: Konqueror does indeed use KHTML, not Gecko.
And according to Wikipedia, Apple has a forked version of KHTML, called WebKit; this is used in Safari and Chrome. I suppose that explains why my locally-submitted cookies (i.e., via the "file://" protocol) are refused by Konqueror, Safari, and Chrome; they are all related.
Thanks, Rob for pointing that out to me in such a timely fashion! ;)
-Karl
Comment 39•16 years ago
|
||
Some feedback on this OS X bug.
I finally found this bugzilla bug and have read all the discussion here, so i went to system preferences and disabled LCD font-smoothing. I'm not sure how that option is called in English (my OS X system is in French). I think Gnome calls that sub-pixel rendering. See the consequences here on text rendering:
http://dl.dropbox.com/u/145744/screens/subpixel-nosub.png (this is zoomed in Photoshop, text size is different but that's not the important part).
Once sub-pixel rendering is off, the “bleeding light text” problem disappears. So this does not seem to be related to Strong or Normal text smoothing (text is smoothed anyway, to the same extent in both cases), but more to a side effect of sub-pixel rendering. Apparently sub-pixel rendering is broken for light text on darker background, that may be a side-effect of sub-pixel rendering algorithms that Apple cannot fix without degrading the quality of sub-pixel rendering in other (much more common) use cases.
See an exemple of the brokenness:
http://dl.dropbox.com/u/145744/screens/subpixel-color.png
(subpixel rendering is much more agressive for white text)
Anyway, disabling sub-pixel rendering is not a great solution since:
- iMacs have sub-pixel rendering on by default, and my guess is that macbooks have it on too;
- sub-pixel rendering makes the text crisper in most use cases (dark text on light background), so users that disable it are losing something.
Now what about "fixing" this in Firefox? If Apple can't or won't fix it, maybe some logic in Firefox could decide, when sub-pixel rendering is on, whether it should actually use it or not for specific bits of text, depending on text color and background color? Maybe that's too much of a hack (if it's even feasible).
Updated•10 years ago
|
Assignee: jd.bugzilla → nobody
Comment 40•5 years ago
|
||
Since this is a very old report and I cannot reproduce the issue on my end I will close it for now.
If the issue still occurs to someone, please feel free to reopen the report.
Thanks!
Status: REOPENED → RESOLVED
Closed: 18 years ago → 5 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•