GNOME Bugzilla – Bug 757521
xsettings: Let fontconfig handle hinting
Last modified: 2019-03-20 11:30:20 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=756204
Created attachment 314733 [details] [review] xsettings: Let fontconfig handle hinting fontconfig can override hinting-style based on the type of font, or the metadata it provides. This is more refined than what GNOME can offer with a single hinting style. XXX TODO: make sure the fontconfig defaults match our own
From the other bug: " - is fontconfig already using those configuration options you describe as a default? - if not, why not? do we have a bugzilla to track this? If the upstream fontconfig doesn't do the "right thing" right now, we can't expect distributors to plug the holes behind us in this case. "
Another approach might be to add a 4th setting, "use sytem defaults" or somesuch, and keep the rest of the options. This would make it possible for people who want to change the defaults in the Tweak Tool, while keeping the fontconfig defaults as the default.
http://lists.freedesktop.org/archives/fontconfig/2015-October/005562.html has relevant discussion for changing the fontconfig default.
(In reply to Kalev Lember from comment #3) > Another approach might be to add a 4th setting, "use sytem defaults" or > somesuch, and keep the rest of the options. This would make it possible for > people who want to change the defaults in the Tweak Tool, while keeping the > fontconfig defaults as the default. Those who can use gnome-tweak-tool can probably find fontconfig snippets to change the configuration to their liking. We already have too many moving parts in this area, and we don't have a good explanation to give to users as to what the difference is, and what is best for different fonts or rendering targets. Eventually, it will be best for us to defer all this configuration to fontconfig, which can apply more refined configuration, such as per-font hinting preferences.
OK, you remove the gsd settings... that's great, but there are still GTK+/Pango settings for hinting, so I guess we just leave the GTK+/Pango settings at their defaults now? Then they still override fontconfig, right?
(In reply to Michael Catanzaro from comment #6) > OK, you remove the gsd settings... that's great, but there are still > GTK+/Pango settings for hinting, so I guess we just leave the GTK+/Pango > settings at their defaults now? Then they still override fontconfig, right? I have no idea... Given how much work there still is before being able to trust the fontconfig defaults, I'm not in a hurry to find out.
I think the problem is that if you remove these settings while GTK+ is still overriding the fontconfig hinting, we accomplish nothing while preventing users from overriding GTK+'s override. But if GTK+ stops controlling hinting at the same time, then there is actual concrete gain.
> If the upstream fontconfig doesn't do the "right thing" right now, we can't expect distributors to plug the holes behind us in this case. I'm still on it. The fontconfig maintainer is open to changes, I'll see.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/281.