After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757521 - xsettings: Let fontconfig handle hinting
xsettings: Let fontconfig handle hinting
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-11-03 13:07 UTC by Bastien Nocera
Modified: 2019-03-20 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xsettings: Let fontconfig handle hinting (7.12 KB, patch)
2015-11-03 13:07 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2015-11-03 13:07:36 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=756204
Comment 1 Bastien Nocera 2015-11-03 13:07:42 UTC
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
Comment 2 Bastien Nocera 2015-11-03 13:18:28 UTC
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.
"
Comment 3 Kalev Lember 2015-11-03 13:22:05 UTC
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.
Comment 4 Kalev Lember 2015-11-03 13:26:13 UTC
http://lists.freedesktop.org/archives/fontconfig/2015-October/005562.html has relevant discussion for changing the fontconfig default.
Comment 5 Bastien Nocera 2015-11-03 13:43:40 UTC
(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.
Comment 6 Michael Catanzaro 2015-11-03 17:13:28 UTC
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?
Comment 7 Bastien Nocera 2015-11-03 17:15:18 UTC
(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.
Comment 8 Michael Catanzaro 2015-11-03 17:41:05 UTC
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.
Comment 9 Nikolaus Waxweiler 2015-11-03 18:11:33 UTC
> 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.
Comment 10 GNOME Infrastructure Team 2019-03-20 11:30:20 UTC
-- 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.