Is there any way to improve the clarity (sharpness) of text in labels and GtkEntries? It seems that Windows is more affected by this issue compared to Linux. Please refer to the outputs using the same code and system font (the default font provided by GTK) on both Linux and Windows.
When comparing Linux3.png and Windows3.png (the last images in each series), you can notice that the text on Windows appears blurry, with digits sometimes blending together with gray. This makes the text difficult to read. On high-DPI displays, everything looks much better. Also, text on linux looks fine. Gtk version: 4.14.5.
I applied the patch and disabled DirectWrite in Pango, as you suggested. However, in my opinion, the output doesn’t look any better after disabling DirectWrite. In fact, it seems even worse than before, and I haven’t changed the font. I’m a bit puzzled because everything looks great on better monitors. Please have a look at the attached figures. Do you have any other suggestions? Will this issue ever be resolved?
I noticed that bold system fonts are displayed properly. So I am wondering, would it be possible to increase the weight of the system font, making it slightly less than bold to differentiate? Can I adjust the application’s default font with more weighting, either through CSS or programmatically?
On windows I set font-weight to 550 for displays that have DPI less than 120. Simple solution that solves all font issues. Of course, cairo 1.18.x must be utilized…