Я показываю все свои настройки:
freetype-2.7
fontconfig-2.12.1
/etc/profile
for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
done
unset sh
/etc/profile.d/freetype2.sh
export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
export FT2_SUBPIXEL_HINTING=2
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintmedium</const>
</edit>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
/etc/fonts/conf.d/
10-hinting-slight.conf -> /usr/share/fontconfig/conf.avail/10-hinting-slight.conf
10-scale-bitmap-fonts.conf -> /usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf
10-sub-pixel-rgb.conf -> /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf
11-lcdfilter-default.conf -> /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf
20-unhint-small-dejavu-sans-mono.conf -> ../conf.avail/20-unhint-small-dejavu-sans-mono.conf
20-unhint-small-dejavu-sans.conf -> ../conf.avail/20-unhint-small-dejavu-sans.conf
20-unhint-small-dejavu-serif.conf -> ../conf.avail/20-unhint-small-dejavu-serif.conf
20-unhint-small-vera.conf -> /usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf
21-cantarell-hinting.conf -> ../conf.avail/21-cantarell-hinting.conf
30-metric-aliases.conf -> /usr/share/fontconfig/conf.avail/30-metric-aliases.conf
30-urw-aliases.conf -> /usr/share/fontconfig/conf.avail/30-urw-aliases.conf
31-cantarell.conf -> ../conf.avail/31-cantarell.conf
40-nonlatin.conf -> /usr/share/fontconfig/conf.avail/40-nonlatin.conf
42-luxi-mono.conf -> ../conf.avail/42-luxi-mono.conf
45-latin.conf -> /usr/share/fontconfig/conf.avail/45-latin.conf
49-sansserif.conf -> /usr/share/fontconfig/conf.avail/49-sansserif.conf
50-user.conf -> /usr/share/fontconfig/conf.avail/50-user.conf
51-local.conf -> /usr/share/fontconfig/conf.avail/51-local.conf
57-dejavu-sans-mono.conf -> ../conf.avail/57-dejavu-sans-mono.conf
57-dejavu-sans.conf -> ../conf.avail/57-dejavu-sans.conf
57-dejavu-serif.conf -> ../conf.avail/57-dejavu-serif.conf
60-latin.conf -> /usr/share/fontconfig/conf.avail/60-latin.conf
65-fonts-persian.conf -> /usr/share/fontconfig/conf.avail/65-fonts-persian.conf
65-nonlatin.conf -> /usr/share/fontconfig/conf.avail/65-nonlatin.conf
69-unifont.conf -> /usr/share/fontconfig/conf.avail/69-unifont.conf
80-delicious.conf -> /usr/share/fontconfig/conf.avail/80-delicious.conf
90-synthetic.conf -> /usr/share/fontconfig/conf.avail/90-synthetic.conf
99pdftoopvp.conf
~/.Xresources
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.dpi: 96.0
Xft.hinting: 1
Xft.hintstyle: hintmedium
Xft.antialias: 1
Xft.rgba: rgb
~/.gtkrc-2.0
gtk-xft-antialias = 1
gtk-xft-hinting = 1
gtk-xft-hintstyle = "hintmedium"
gtk-xft-rgba = "rgb"
Файла ~/.config/fontconfig/* — нет. Больше нигде, если я не ошибаюсь, настройки шрифтов не указаны.
Вопрос: почему не работает субпиксельное сглаживание везде: в firefox, chrome, других остальных gtk2/3 приложениях?
Но при этом работает в Qt.