Implement perceptual gamma / contrast correction (#37167)

Closes #36023 

This improves font rendering quality by doing perceptual gamma+contrast
correction which makes font edges look nicer and more legible.

A comparison image: (left is old, right is new)
<img width="1638" height="854" alt="Screenshot 2025-08-29 140015"
src="https://github.com/user-attachments/assets/85ca9818-0d55-4af0-a796-19e8cf9ed36b"
/>

This is most noticeable on smaller fonts / low-dpi displays

Release Notes:

- Improved font rendering quality
d910feac1dlocalcc committed on 9/1/2025, 6:07:45 PM· committed by GitHubparent61175ab
7 files changedLine totals unavailable