Why Firefox font-family render is so horrible than Chrome?
I'm checking my website right now with Firefox 5, and I see that the rendering of the fonts is terrible.
This is the difference between Firefox (5) and Chrome : just see for example the text Jeffe
how is rendered...
The default font-family is :
font-family:"Times New Roman", Times, seri开发者_如何学Gof;
Why this behaviour? And how can I fix this trouble?
My actual OS : Windows 7 Professional
You can try using CSS Reset to reduce inconsistencies between different browsers.
Look up: https://stackoverflow.com/questions/116754/best-css-reset, or search online for css reset
.
I can't guarantee that this will work, but it should help. You can even customize it to get what you want.
(IMO, it's not that horrible. I actually like the font better than chrome.)
Note:
Brad said (in your comments) that you should not depend on rendering fonts in a specific way. I agree with this. In addition, some people may like the font the way it is. It is much better to leave it alone, rather than trying to control the font rendering.
You can try this and see if it helps...
On Firefox 42, inside about:config, the gfx.font_rendering.cleartype_params.rendering_mode definitely changes the way the fonts are rendered on Windows OS. You can make the changes and see live what the differences are. What you are going to want to do is actually search for this value and make sure it is the only one visible in your about:config window. The reason for this is below.
The options are as follows:
- -1 (Firefox default) screenshot
- 0 (default) screenshot
- 1 (aliased) screenshot
- 2 (GDI Classic) screenshot
- 3 (GDI Natural) screenshot
- 4 (Natural) screenshot
- 5 (Natural Symmetric) screenshot
A word of caution. When making changes to this value on my system, choosing 1 completely removes all text rendered in the browser. This means all your tabs, interface, webpage and about:config text might become completely invisible. If this happens, don't freak out, just double click on the bar where the value should be and change it back to 0 or -1. This is why you want to do a search for the actual value first, so that there is only one entry visible and you can change it back if something goes wrong. Trust me, I learned the hard way.
Source: BugZilla
精彩评论