Hacker News new | ask | show | jobs
by WhereIsTheTruth 840 days ago
And still no proper gamma correction.. wich makes the whole thing useless, specially on low-DPI screens

Nobody does it properly on linux, despite freetype's recommendations.. a shame..

https://freetype.org/freetype2/docs/hinting/text-rendering-g...

It's even worse for Light text on Dark backgrounds.. text becomes hard to read..

GTK is not alone

Chromium/Electron tries but is wrong 1.2 instead of 1.8, and doesn't do gamma correction on grayscale text

https://chromium-review.googlesource.com/c/chromium/src/+/53...

Firefox, just like Chromium is using Skia, so is using proper default values but ignores it for grayscale text too..

https://bugzilla.mozilla.org/show_bug.cgi?id=1882758

A trick that i use to make things a little bit better:

In your .profile:

    export FREETYPE_PROPERTIES="cff:no-stem-darkening=0 autofitter:no-stem-darkening=0 type1:no-stem-darkening=0 t1cid:no-stem-darkening=0"
2 comments

> This seems to fix the blurry fonts with Wayland instead of X:

  flatpak --socket=wayland run com.visualstudio.code --enable-features=UseOzonePlatform --ozone-platform=wayland
https://github.com/flathub/com.visualstudio.code/issues/398 :

> Various font-related flags I found in solving for blurry fonts on wayland

Is there an environment variable to select Wayland instead of XWayland for electron apps like Slack and VScode where fractional scaling with wayland doesn't work out of the box?

Wow, I just tried those environment variables, and it makes a remarkable difference for the smoothness and fullness for every font. I'll probably be leaving this setting on until something breaks when it gets fixed, and I inevitably spend too much time trying to figure out why it's broken after forgetting what I changed.

Thanks for the tip, though.

100%

I don't know what my life would like without such decisions...