Source code patch for enabling contrast text on Win XP?

Any topic
Post Reply
Alex654
Posts: 42
Joined: Tue Dec 12, 2017 8:35 pm

Source code patch for enabling contrast text on Win XP?

Post by Alex654 »

Hello,

Could you please provide the changes in code that make the text look better (which is described on this page: https://browser.taokaizen.com/chrome-directwrite/)?

I want to compile the patched version myself (based on sources of v49), compare binaries with the official build, find the difference and try to hex-patch original Chrome 49.

For now I can't compare binaries because the last Windows XP compatible version (v54) contains code from Chrome 48, 52 and 54, so it's very hard to analyse it anyway. Also most of the changes cover downloads behavior, which is not what I need.

Thanks in advance :)

admin
Site Admin
Posts: 266
Joined: Wed Feb 06, 2013 7:47 pm

Re: Source code patch for enabling contrast text on Win XP?

Post by admin »

Hello, to make the text look better you just need to change gamma parameter on skia, this is for version 80+

Depending on the version I had to do different tricks, for older versions you need to enable GDI because you won't find skia gamma, I don't remember how to enable GDI on older builds.

Alex654
Posts: 42
Joined: Tue Dec 12, 2017 8:35 pm

Re: Source code patch for enabling contrast text on Win XP?

Post by Alex654 »

Then why there is nothing in your patch connected with gamma? I just don't know what to change... Also, wasn't GDI support removed in version 22 completely from Chromium sources when the text became blurry for the first time?

admin
Site Admin
Posts: 266
Joined: Wed Feb 06, 2013 7:47 pm

Re: Source code patch for enabling contrast text on Win XP?

Post by admin »

Because that is a different repo, to modify gamma you need to work on third party/skia and that is a different repo, it is a pain to have different repos and a diff on main repo won't include childs, so I have to patch skia manually everytime.

Post Reply