Hello, everybody. I'm pretty stumbled upon the following issue:
Debian 9, MATE. In order to make Qt apps (VLC, Virtualbox etc.) look the same, I installed
qt5-gtk-platformtheme и
qt5-style-plugins packages and put
QT_QPA_PLATFORMTHEME=gtk2 into
/etc/environment. Since I don't like font antialiasing, I've created the following ~/.config/fontconfig/fonts.conf (otherwise, Qt apps have antialiased fonts):
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit name="rgba" mode="assign">
<const>none</const>
</edit>
</match>
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintmedium</const>
</edit>
</match>
<match target="font">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
Now everything is perfect: native GTK apps like
File manager and foreign Qt apps like
VLC are uniform.
But, unfortunately, this is not the case with
Telegram. I guess, it is their fault as I've found the same issue on their
Github.
So, the question is: is it possible to make Telegram
ignore my fonts.conf? How can I make a particular application
bypass my local font configuration?
Thank you.
UPDATE: Problem solved. See
here.
In order to make any application ignore local settings you may start it with:
Code:
XDG_CONFIG_HOME= telegram-desktop
Mind the gap/space between XDG_CONFIG_HOME= and the command itself.
UPDATE 2:
I also managed to make Chrome look nice with disabled antialiasing system-wide!
Simply copy your ~/.config to ~/.config.chrome
Enable antialiasing in this new ~/.config.chrome/fontconfig/fonts.conf
Start with:
Code:
XDG_CONFIG_HOME="${HOME}/.config.chrome" chromium