Probably there should be an explanation that I cannot find on the internet for this, but why in conf.avail/ there aren't some configuration presets? I found that antialias, hinting + various hinting styles and no-lcdfilter are missing. Even if they are not symlinked in conf.d/ by default, it's useful to have them ready in conf.avail/ I attached a patch I made for Debian packages for reference.
Index: fontconfig-2.11.0/conf.d/10-antialias.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/10-antialias.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Use the Antialiasing --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit name="antialias" mode="append"><bool>true</bool></edit> + </match> +</fontconfig> Index: fontconfig-2.11.0/conf.d/10-hinting.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/10-hinting.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Use Hinting --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit name="hinting" mode="append"><bool>true</bool></edit> + </match> +</fontconfig> Index: fontconfig-2.11.0/conf.d/10-hinting-full.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/10-hinting-full.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Use Full Hinting --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit name="hintstyle" mode="append"><const>hintfull</const></edit> + </match> +</fontconfig> Index: fontconfig-2.11.0/conf.d/10-hinting-medium.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/10-hinting-medium.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Use Medium Hinting --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit name="hintstyle" mode="append"><const>hintmedium</const></edit> + </match> +</fontconfig> Index: fontconfig-2.11.0/conf.d/10-hinting-slight.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/10-hinting-slight.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Use Slight Hinting --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit name="hintstyle" mode="append"><const>hintslight</const></edit> + </match> +</fontconfig> Index: fontconfig-2.11.0/conf.d/11-no-lcdfilter.conf =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fontconfig-2.11.0/conf.d/11-no-lcdfilter.conf 2013-12-14 02:46:52.970358432 +0100 @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Disable LCD filter --> + <match target="pattern"> + <!-- + This configuration is available on the major desktop environments. + We shouldn't overwrite it with "assign" unconditionally. + Most clients may picks up the first value only. so using "append" + may simply works to avoid it. + --> + <edit mode="append" name="lcdfilter"> + <const>lcdnone</const> + </edit> + </match> +</fontconfig>
_______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig