-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak SK_GAMMA_EXPONENT and SK_GAMMA_CONTRAST to get proper gamma correction for text #212
Comments
So, you'd like us to add a patch that changes the gamma values? to which values exactly? |
General consensus is that it should be somewhere between 1.8 and 2.2. This test by Alankila should give us a good idea on what the value should be. From my testing on different displays, I find 2.2 to be the closest to what I would consider a good default. In reality there's no "correct" exponent value, but 2.2 seems to be a very good approximation and any error caused by it is minute and it's certainly better than having no gamma correction at all. That's for |
ok, the patch seems simple enough to maintain
|
Ok, I've built a new version with that patch enabled. can you give it a test? |
Alright. After some testing it seems 2.2 for As for light themes, that's a different story. Increasing the gamma exponent meant, by definition, that the dark text would look a little too thin on lighter backgrounds. You either get proper dark mode or proper light mode but not both simultaneously (by default). This issue was expected, and I am currently playing with some stem darkening parameters for FreeType. Stem darkening was created as a counter measure for exactly this purpose, and both Windows and macOS use it as both do gamma corrected rendering system-wide. The settings in question are Unfortunately I can't seem to be able get the proper values yet, I had the impression that it would be a lot more straightforward but seeing how time consuming this process is, I doubt the average user would bother. The good news is that if you're primarily a dark mode user you'll be happy without having to tweak anything. I'll be testing stuff from time to time and I'll make sure to give an update if I ever find a good solution. But yeah, we definitely cannot make this the default unfortunately. Maybe keep the link and patch here for those who are interested. I personally will probably keep patching ungoogled-chromium as I'm primarily a dark mode user. Thank you for your time, and for the pre-compiled package, I really appreciate it! If you have no further comments feel free to close the issue. |
Update: I did one last test and I think this looks very acceptable now, only enabling stem darkening without editing any of the extra parameters (so |
Background.
You are probably familiar with this unfortunate limitation we have on Linux. Thankfully there's an option to apply proper gamma levels for text on Chromium independently, but it is not tweaked by default for the GNU/Linux operating system. It would be nice to have this done by you guys.
The text was updated successfully, but these errors were encountered: