Browser font rendering

General discussion and chat (archived)
chumley

Browser font rendering

Unread post by chumley » 2017-03-30, 20:39

On Windows 7, I have noticed that font rendering in Pale Moon, FireFox, or IE 11 looks noticeably better than in Chrome or other Chrome-based browsers. In the former browsers the fonts look bolder/sharper/clearer than in Chrome-based browsers.

Does anyone know why this is? I did some googling and couldn't really find an answer.

Here's some related discussion, just confirming that I'm not alone:
https://www.reddit.com/r/firefox/commen ... rendering/

This add-on for Chrome makes it more tolerable, but still not as good as PM/FF.
https://chrome.google.com/webstore/deta ... njdelkiock

User avatar
eskaton
Lunatic
Lunatic
Posts: 474
Joined: 2013-08-23, 19:54

Re: Browser font rendering

Unread post by eskaton » 2017-03-30, 20:45

Probably this (removing DirectWrite): http://www.ghacks.net/2016/06/06/chrome ... ng-google/

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Browser font rendering

Unread post by Moonchild » 2017-04-01, 18:28

Eskaton: I'm afraid you have it backwards.

Chrome uses DirectWrite exclusively for rendering fonts, even at small sizes where the font-shaping of it creates often anemic, too-light or poorly-antialiased fonts.
You can emulate it in Pale Moon by setting gfx.font_rendering.cleartype_params.force_gdi_classic_max_size to a very small size on a hardware-accelerated setup. Of note, Pale Moon uses GDI for larger fonts than Firefox to work around some edge cases, improving font clarity at the expense of some (potential) speed.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

chumley

Re: Browser font rendering

Unread post by chumley » 2017-04-03, 00:16

Thanks Moonchild.

zcyzcy88

Re: Browser font rendering

Unread post by zcyzcy88 » 2017-06-09, 09:13

IIRC,
Because DirectWrite works best with Direct2D (used by IE & FF),
Chrome use Skia.

Locked